ID), DiviPageLoader::OUTLINE_HINT ); } /** A parent / before / after / index the tree has no place for (TreeEditor::position()). */ public static function position(string $problem): WP_Error { return Errors::invalidInput('Ungültige Position; nichts wurde gespeichert.', ['position' => $problem]); } /** * The errors of Composer::compose()/update(): invalid_attr_path when an attribute path is * unknown (the more useful hint), else invalid_input with $message. * * @param array{errors: array, invalid_paths: list} $result */ public static function composed(array $result, string $message): WP_Error { return $result['invalid_paths'] !== [] ? Errors::invalidAttrPath($result['errors']) : Errors::invalidInput($message, $result['errors']); } }