}> */ public function subjects(): array { return array(); } /** * Returns the texts the builder keeps for a subject, read from where they are stored rather * than from a page: for a subject of its own, all of its texts; for a post, the texts of the * post's fields, also those its page does not show. * * Each text names its object (o), its path (p), its value (v), its rule key (r) and its kind, * as the probe would find it, and may name the field it belongs to (place). An address is of * the kind "url", "image" or "video". * * @param array $subject Subject, see swiftling_subject(). * @return array */ public function listTexts( array $subject ): array { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found -- A builder that keeps texts outside pages overrides it. return array(); } /** * Whether the builder declares a value as code, such as the content of an HTML or code snippet * field. The editor shows code only when asked to. * * @param string $owner Object key of the value. * @param string $path Path of the value inside its object. * @param string $rule Rule key of the value. */ public function isCode( string $owner, string $path, string $rule ): bool { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter -- A builder with code fields overrides it. return false; } /** * Returns the meta keys the builder writes again by itself, such as CSS made from a page's * data, which a separate copy of the page leaves out. * * @return string[] */ public function regeneratedMeta(): array { return array(); } /** * Returns the address of the builder's own editor for a post the builder is used for. * * @param int $post_id Post ID. * @return string|null Null when the post is edited in WordPress's own editor. */ public function editUrl( int $post_id ): ?string { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found -- A builder with its own editor overrides it. return null; } /** * Whether the request is the preview the builder's own editor shows while a post is edited. */ public function isEditorPreview(): bool { return false; } }