- $0 Drupal\node\Entity\Node#2751 (39)
- Entity Fields (39)
- Properties (31)
- Methods (136)
- Static methods (19)
- Static properties (1)
- Class constants (9)
- Iterator
- nid -> string (3) "519"$0->nid->value
- uuid -> string (36) "f1939408-dd2a-4826-bdbe-61651423f6f6"$0->uuid->value
- vid -> string (3) "531"$0->vid->value
- langcode -> string (2) "es"$0->langcode->value
- type -> string (12) "pagina_libre"$0->type->target_id
- revision_timestamp -> string (10) "1713429698"$0->revision_timestamp->value
2024-04-18T08:41:38+00:00
- revision_uid -> string (1) "4"$0->revision_uid->target_id
- revision_log -> Drupal\Core\Field\FieldItemList#11374 (0)$0->revision_log
- No values
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- No values uninitialized
- protected definition -> Drupal\Core\Field\BaseFieldDefinition#2872 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (9)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2873 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (20) "Revision log message"
- protected arguments -> array (0)
- protected translatedMarkup -> string (35) "Mensaje del historial de revisiones"
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (35) "Mensaje del historial de revisiones"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2874 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (43) "Briefly describe the changes you have made."
- protected arguments -> array (0)
- protected translatedMarkup -> string (49) "Describa brevemente los cambios que ha realizado."
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (49) "Describa brevemente los cambios que ha realizado."
- revisionable => boolean true
- default_value => array (1)
- 0 => array (1)
- value => string (0) ""
- display => array (1)
- form => array (1)
- options => array (3)
- type => string (15) "string_textarea"
- weight => integer 25
- settings => array (1) Depth Limit
- provider => string (4) "node"
- field_name => string (12) "revision_log"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2875 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (22) "field_item:string_long"
- settings => array (1)
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2872 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (11) "string_long"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected name -> string (12) "revision_log"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->revision_log->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->revision_log->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->revision_log->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->revision_log->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->revision_log->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->revision_log->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->revision_log->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->revision_log->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->revision_log->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->revision_log->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->revision_log->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->revision_log->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->revision_log->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->revision_log->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->revision_log->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->revision_log->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->revision_log->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->revision_log->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->revision_log->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->revision_log->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->revision_log->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->revision_log->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->revision_log->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->revision_log->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->revision_log->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->revision_log->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->revision_log->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->revision_log->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->revision_log->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->revision_log->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->revision_log->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->revision_log->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->revision_log->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->revision_log->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->revision_log->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->revision_log->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->revision_log->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->revision_log->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->revision_log->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->revision_log->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->revision_log
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->revision_log->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\FieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->revision_log->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->revision_log->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->revision_log->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->revision_log->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->revision_log->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->revision_log->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->revision_log->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->revision_log->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->revision_log->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->revision_log->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->revision_log->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->revision_log->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->revision_log, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- status -> string (1) "1"$0->status->value
- uid -> string (1) "4"$0->uid->target_id
- title -> string (9) "Servicios"$0->title->value
- created -> string (10) "1713429698"$0->created->value
2024-04-18T08:41:38+00:00
- changed -> string (10) "1759230695"$0->changed->value
2025-09-30T11:11:35+00:00
- promote -> string (1) "0"$0->promote->value
- sticky -> string (1) "0"$0->sticky->value
- default_langcode -> string (1) "1"$0->default_langcode->value
- revision_default -> string (1) "1"$0->revision_default->value
- revision_translation_affected -> string (1) "1"$0->revision_translation_affected->value
- metatag -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 (10)$0->metatag
- Values (10)
- Properties (11)
- Methods (72)
- Static methods (2)
- Iterator
- 0 => array (2)$0->metatag->getValue()[0]
- tag => string (4) "meta"$0->metatag->getValue()[0]['tag']
- attributes => array (2)$0->metatag->getValue()[0]['attributes']
- name => string (5) "title"$0->metatag->getValue()[0]['attributes']['name']
- content => UTF-8 string (31) "Servicios | Zausen Consultoría"$0->metatag->getValue()[0]['attributes']['content']
- name => string (5) "title"
- tag => string (4) "meta"
- 1 => array (2)$0->metatag->getValue()[1]
- tag => string (4) "meta"$0->metatag->getValue()[1]['tag']
- attributes => array (2)$0->metatag->getValue()[1]['attributes']
- name => string (11) "description"$0->metatag->getValue()[1]['attributes']['name']
- content => string (65) "dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw"$0->metatag->getValue()[1]['attributes']['content']
- name => string (11) "description"
- tag => string (4) "meta"
- 2 => array (2)$0->metatag->getValue()[2]
- tag => string (4) "link"$0->metatag->getValue()[2]['tag']
- attributes => array (2)$0->metatag->getValue()[2]['attributes']
- rel => string (9) "canonical"$0->metatag->getValue()[2]['attributes']['rel']
- href => string (49) "https://tcq.bitanube.com/todos-nuestros-servicios"$0->metatag->getValue()[2]['attributes']['href']
- rel => string (9) "canonical"
- tag => string (4) "link"
- 3 => array (2)$0->metatag->getValue()[3]
- tag => string (4) "meta"$0->metatag->getValue()[3]['tag']
- attributes => array (4)$0->metatag->getValue()[3]['attributes']
- name => string (19) "isAccessibleForFree"$0->metatag->getValue()[3]['attributes']['name']
- content => string (4) "True"$0->metatag->getValue()[3]['attributes']['content']
- group => string (14) "schema_article"$0->metatag->getValue()[3]['attributes']['group']
- schema_metatag => boolean true$0->metatag->getValue()[3]['attributes']['schema_metatag']
- name => string (19) "isAccessibleForFree"
- tag => string (4) "meta"
- 4 => array (2)$0->metatag->getValue()[4]
- tag => string (4) "meta"$0->metatag->getValue()[4]['tag']
- attributes => array (4)$0->metatag->getValue()[4]['attributes']
- name => string (5) "@type"$0->metatag->getValue()[4]['attributes']['name']
- content => string (12) "Organization"$0->metatag->getValue()[4]['attributes']['content']
- group => string (19) "schema_organization"$0->metatag->getValue()[4]['attributes']['group']
- schema_metatag => boolean true$0->metatag->getValue()[4]['attributes']['schema_metatag']
- name => string (5) "@type"
- tag => string (4) "meta"
- 5 => array (2)$0->metatag->getValue()[5]
- tag => string (4) "meta"$0->metatag->getValue()[5]['tag']
- attributes => array (4)$0->metatag->getValue()[5]['attributes']
- name => string (3) "@id"$0->metatag->getValue()[5]['attributes']['name']
- content => string (25) "https://tcq.bitanube.com/"$0->metatag->getValue()[5]['attributes']['content']
- group => string (19) "schema_organization"$0->metatag->getValue()[5]['attributes']['group']
- schema_metatag => boolean true$0->metatag->getValue()[5]['attributes']['schema_metatag']
- name => string (3) "@id"
- tag => string (4) "meta"
- 6 => array (2)$0->metatag->getValue()[6]
- tag => string (4) "meta"$0->metatag->getValue()[6]['tag']
- attributes => array (4)$0->metatag->getValue()[6]['attributes']
- name => string (11) "description"$0->metatag->getValue()[6]['attributes']['name']
- content => UTF-8 string (186) "Somos tu aliado estratégico para el crecimiento y la eficiencia de tu empres...$0->metatag->getValue()[6]['attributes']['content']
Somos tu aliado estratégico para el crecimiento y la eficiencia de tu empresa. Ofrecemos una amplia gama de servicios personalizados para satisfacer todas tus necesidades empresariales.
- group => string (19) "schema_organization"$0->metatag->getValue()[6]['attributes']['group']
- schema_metatag => boolean true$0->metatag->getValue()[6]['attributes']['schema_metatag']
- name => string (11) "description"
- tag => string (4) "meta"
- 7 => array (2)$0->metatag->getValue()[7]
- tag => string (4) "meta"$0->metatag->getValue()[7]['tag']
- attributes => array (4)$0->metatag->getValue()[7]['attributes']
- name => string (4) "name"$0->metatag->getValue()[7]['attributes']['name']
- content => UTF-8 string (19) "Zausen Consultoría"$0->metatag->getValue()[7]['attributes']['content']
- group => string (19) "schema_organization"$0->metatag->getValue()[7]['attributes']['group']
- schema_metatag => boolean true$0->metatag->getValue()[7]['attributes']['schema_metatag']
- name => string (4) "name"
- tag => string (4) "meta"
- 8 => array (2)$0->metatag->getValue()[8]
- tag => string (4) "meta"$0->metatag->getValue()[8]['tag']
- attributes => array (4)$0->metatag->getValue()[8]['attributes']
- name => string (3) "url"$0->metatag->getValue()[8]['attributes']['name']
- content => string (25) "https://tcq.bitanube.com/"$0->metatag->getValue()[8]['attributes']['content']
- group => string (19) "schema_organization"$0->metatag->getValue()[8]['attributes']['group']
- schema_metatag => boolean true$0->metatag->getValue()[8]['attributes']['schema_metatag']
- name => string (3) "url"
- tag => string (4) "meta"
- 9 => array (2)$0->metatag->getValue()[9]
- tag => string (4) "meta"$0->metatag->getValue()[9]['tag']
- attributes => array (4)$0->metatag->getValue()[9]['attributes']
- name => string (4) "logo"$0->metatag->getValue()[9]['attributes']['name']
- content => array (5)$0->metatag->getValue()[9]['attributes']['content']
- @type => string (11) "ImageObject"$0->metatag->getValue()[9]['attributes']['content']['@type']
- representativeOfPage => string (5) "False"$0->metatag->getValue()[9]['attributes']['content']['representativeOfPage']
- url => string (35) "/sites/default/files/taxi-logo.avif"$0->metatag->getValue()[9]['attributes']['content']['url']
- width => string (2) "60"$0->metatag->getValue()[9]['attributes']['content']['width']
- height => string (2) "60"$0->metatag->getValue()[9]['attributes']['content']['height']
- @type => string (11) "ImageObject"
- group => string (19) "schema_organization"$0->metatag->getValue()[9]['attributes']['group']
- schema_metatag => boolean true$0->metatag->getValue()[9]['attributes']['schema_metatag']
- name => string (4) "logo"
- tag => string (4) "meta"
- 0 => array (2)
- protected definition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (40) "Metatags (Hidden field for JSON support)"
- protected arguments -> array (0)
- protected translatedMarkup -> string (40) "Metatags (Hidden field for JSON support)"
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (40) "Metatags (Hidden field for JSON support)"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (38) "The computed meta tags for the entity."
- protected arguments -> array (0)
- protected translatedMarkup -> string (38) "The computed meta tags for the entity."
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (38) "The computed meta tags for the entity."
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (3)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#12869 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (3) "Tag"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (8) "Etiqueta"
- required => boolean true
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 (4)
- Properties (4)
- Methods (39)
- Static methods (4)
- protected definition -> array (3)
- type => string (3) "map"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#12872 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (4) "Name"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (6) "Nombre"
- required => boolean true
- protected typedDataManager -> null
- protected propertyDefinitions -> null
- protected mainPropertyName -> null
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/MapDataDefinition.php:40
- public setPropertyDefinition($name, ?Drupal\Core\TypedData\DataDefinitionInterface $definition = null): $this Sets the definition of a map property.
/** * Sets the definition of a map property. * * @param string $name * The name of the property to define. * @param \Drupal\Core\TypedData\DataDefinitionInterface|null $definition * (optional) The property definition to set, or NULL to unset it. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/MapDataDefinition.php:57
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/MapDataDefinition.php:70
- public setMainPropertyName($name): $this Sets the main property name.
/** * Sets the main property name. * * @param string|null $name * The name of the main property, or NULL if there is none. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/MapDataDefinition.php:82
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:25
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:42
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\MapDataDefinition::create($type = 'map'): static Creates a new map definition.
/** * Creates a new map definition. * * @param string $type * (optional) The data type of the map. Defaults to 'map'. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/MapDataDefinition.php:25
- public static Drupal\Core\TypedData\MapDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/MapDataDefinition.php:33
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected name -> string (7) "metatag"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (10)
- 0 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#14630 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 0
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (2)
- name => string (5) "title"
- content => UTF-8 string (31) "Servicios | Zausen Consultoría"
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 1 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#13137 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 1
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (2)
- name => string (11) "description"
- content => string (65) "dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw"
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 2 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#13136 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 2
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "link"
- attributes => array (2)
- rel => string (9) "canonical"
- href => string (49) "https://tcq.bitanube.com/todos-nuestros-servicios"
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 3 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#13163 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 3
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (4)
- name => string (19) "isAccessibleForFree"
- content => string (4) "True"
- group => string (14) "schema_article"
- schema_metatag => boolean true
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 4 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#14749 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 4
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (4)
- name => string (5) "@type"
- content => string (12) "Organization"
- group => string (19) "schema_organization"
- schema_metatag => boolean true
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 5 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#14631 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 5
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (4)
- name => string (3) "@id"
- content => string (25) "https://tcq.bitanube.com/"
- group => string (19) "schema_organization"
- schema_metatag => boolean true
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 6 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#14751 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 6
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (4)
- name => string (11) "description"
- content => UTF-8 string (186) "Somos tu aliado estratégico para el crecimiento y la eficiencia de tu empres...
Somos tu aliado estratégico para el crecimiento y la eficiencia de tu empresa. Ofrecemos una amplia gama de servicios personalizados para satisfacer todas tus necesidades empresariales.
- group => string (19) "schema_organization"
- schema_metatag => boolean true
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 7 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#14752 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 7
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (4)
- name => string (4) "name"
- content => UTF-8 string (19) "Zausen Consultoría"
- group => string (19) "schema_organization"
- schema_metatag => boolean true
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 8 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#14753 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 8
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (4)
- name => string (3) "url"
- content => string (25) "https://tcq.bitanube.com/"
- group => string (19) "schema_organization"
- schema_metatag => boolean true
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 9 => Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem#14754 (9)
- Properties (9)
- Methods (49)
- Static methods (18)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 Depth Limit
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 Recursion
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> array (2)
- tag => Drupal\Core\TypedData\DataDefinition#12870 Depth Limit
- attributes => Drupal\Core\TypedData\MapDataDefinition#14640 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 9
- protected parent -> Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList#11449 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- tag => string (4) "meta"
- attributes => array (4)
- name => string (4) "logo"
- content => array (5)
- @type => string (11) "ImageObject"
- representativeOfPage => string (5) "False"
- url => string (35) "/sites/default/files/taxi-logo.avif"
- width => string (2) "60"
- height => string (2) "60"
- group => string (19) "schema_organization"
- schema_metatag => boolean true
- protected properties -> array (0)
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:47
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:27
- public static Drupal\metatag\Plugin\Field\FieldType\ComputedMetatagsFieldItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/ComputedMetatagsFieldItem.php:34
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- protected langcode -> string (2) "es"
- protected metatagsGenerated -> boolean true
- protected valueComputed -> boolean true
- protected valueNeedsRecomputing() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/MetatagEntityFieldItemList.php:30
- protected computeValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/MetatagEntityFieldItemList.php:37
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->metatag->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->metatag->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->metatag->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->metatag->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->metatag->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->metatag->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->metatag->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->metatag->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:50
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->metatag->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->metatag->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->metatag->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:145
- public preSave() {@inheritdoc}$0->metatag->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->metatag->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->metatag->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->metatag->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->metatag->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->metatag->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->metatag->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->metatag->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->metatag->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->metatag->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->metatag->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->metatag->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->metatag->getValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:42
- public getString() {@inheritdoc}$0->metatag->getString()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:61
- public get($index) {@inheritdoc}$0->metatag->get()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:69
- public set($index, $value) {@inheritdoc}$0->metatag->set()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:89
- public removeItem($index) {@inheritdoc}$0->metatag->removeItem()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:105
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->metatag->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->metatag->offsetExists()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:121
- public offsetUnset($offset): void {@inheritdoc}$0->metatag->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->metatag->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->metatag->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->metatag->appendItem()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:97
- public getItemDefinition() {@inheritdoc}$0->metatag->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->metatag->getIterator()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:129
- public count(): int {@inheritdoc}$0->metatag->count()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:137
- public isEmpty() {@inheritdoc}$0->metatag->isEmpty()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:113
- public filter($callback) {@inheritdoc}$0->metatag->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->metatag->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->metatag
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->metatag->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\metatag\Plugin\Field\MetatagEntityFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->metatag->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->metatag->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->metatag->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->metatag->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->metatag->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->metatag->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->metatag->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->metatag->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->metatag->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->metatag->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->metatag->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->metatag->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- protected ensureComputedValue() Ensures that values are only computed once.
/** * Ensures that values are only computed once. */ Defined in <drupal>/modules/contrib/metatag/src/TypedData/ComputedItemListTrait.php:28
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->metatag, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- path -> Drupal\pathauto\PathautoFieldItemList#11451 (3)$0->path
- Field properties (3)
- Properties (10)
- Methods (71)
- Static methods (2)
- Iterator
- alias -> string (25) "/todos-nuestros-servicios"$0->path->alias
- pid -> string (2) "73"$0->path->pid
- langcode -> string (2) "es"$0->path->langcode
- alias -> string (25) "/todos-nuestros-servicios"
- protected definition -> Drupal\Core\Field\BaseFieldDefinition#2928 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (8)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2929 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (9) "URL alias"
- protected arguments -> array (0)
- protected translatedMarkup -> string (12) "Alias de URL"
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (12) "Alias de URL"
- translatable => boolean true
- display => array (1)
- form => array (2)
- options => array (2)
- type => string (4) "path"
- weight => integer 30
- configurable => boolean true
- computed => boolean true
- provider => string (4) "path"
- field_name => string (4) "path"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2930 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (15) "field_item:path"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2928 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (4) "path"
- protected propertyDefinitions -> array (4)
- alias => Drupal\Core\TypedData\DataDefinition#14758 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (2)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#14773 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (10) "Path alias"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (16) "Alias de la ruta"
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- pid => Drupal\Core\TypedData\DataDefinition#14774 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (2)
- type => string (7) "integer"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#14767 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (7) "Path id"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (16) "El id de la ruta"
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- langcode => Drupal\Core\TypedData\DataDefinition#14776 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (2)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#14768 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (13) "Language Code"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (17) "Código de idioma"
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- pathauto => Drupal\Core\TypedData\DataDefinition#14769 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (5)
- type => string (7) "integer"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#14770 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (14) "Pathauto state"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (18) "Estado de Pathauto"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#14771 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (52) "Whether an automated alias should be created or not."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (52) "Whether an automated alias should be created or not."
- computed => boolean true
- class => string (30) "\Drupal\pathauto\PathautoState"
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected name -> string (4) "path"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (1)
- 0 => Drupal\pathauto\PathautoItem#16990 (9)
- Properties (9)
- Methods (49)
- Static methods (21)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2930 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (15) "field_item:path"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2928 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (8)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2929 Depth Limit
- translatable => boolean true
- display => array (1) Depth Limit
- computed => boolean true
- provider => string (4) "path"
- field_name => string (4) "path"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2930 Recursion
- protected type -> string (4) "path"
- protected propertyDefinitions -> array (4)
- alias => Drupal\Core\TypedData\DataDefinition#14758 Depth Limit
- pid => Drupal\Core\TypedData\DataDefinition#14774 Depth Limit
- langcode => Drupal\Core\TypedData\DataDefinition#14776 Depth Limit
- pathauto => Drupal\Core\TypedData\DataDefinition#14769 Depth Limit
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 0
- protected parent -> Drupal\pathauto\PathautoFieldItemList#11451 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (3)
- alias => string (25) "/todos-nuestros-servicios"
- pid => string (2) "73"
- langcode => string (2) "es"
- protected properties -> array (1)
- pathauto => Drupal\pathauto\PathautoState#16991 (9)
- Properties (9)
- Methods (29)
- Static methods (3)
- Class constants (2)
- protected definition -> Drupal\Core\TypedData\DataDefinition#14769 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (5) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (8) "pathauto"
- protected parent -> Drupal\pathauto\PathautoItem#16990 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected value -> null
- protected originalValue -> null
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:45
- protected getOriginalValue(): mixed Gets the data value currently stored in database.
/** * Gets the data value currently stored in database. * * @return mixed * The data value. */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:66
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:84
- public hasValue() Returns TRUE if a value was set.
/** * Returns TRUE if a value was set. */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:95
- public persist() Persists the state.
/** * Persists the state. */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:102
- public purge() Deletes the stored state.
/** * Deletes the stored state. */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:115
- protected getCollection(): string Returns the key value collection that should be used for the given entity.
/** * Returns the key value collection that should be used for the given entity. * * @return string */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:125
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:112
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\pathauto\PathautoState::bulkDelete($entity_type_id, array $pids_by_id) Deletes the URL aliases for multiple entities of the same type.
/** * Deletes the URL aliases for multiple entities of the same type. * * @param string $entity_type_id * The entity type ID of entities being deleted. * @param int[] $pids_by_id * A list of path IDs keyed by entity ID. */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:137
- public static Drupal\pathauto\PathautoState::getPathautoStateKey($entity_id): int|string Gets the key-value store entry key for 'pathauto_state.*' collections.
/** * Gets the key-value store entry key for 'pathauto_state.*' collections. * * Normally we want to use the entity ID as key for 'pathauto_state.*' * collection entries. But some entity types may use string IDs. When such IDs * are exceeding 128 characters, which is the limit for the 'name' column in * the {key_value} table, the insertion of the ID in {key_value} will fail. * Thus we test if we can use the plain ID or we need to store a hashed * version of the entity ID. Also, it is not possible to rely on the UUID as * entity types might not have one or might use a non-standard format. * * The code is inspired by * \Drupal\Core\Cache\DatabaseBackend::normalizeCid(). * * @param int|string $entity_id * The entity id for which to compute the key. * * @return int|string * The key used to store the value in the key-value store. * * @see \Drupal\Core\Cache\DatabaseBackend::normalizeCid() */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoState.php:181
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public const Drupal\pathauto\PathautoState::SKIP :: integer 0
- public const Drupal\pathauto\PathautoState::CREATE :: integer 1
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoItem.php:30
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoItem.php:42
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathItem Defined in <drupal>/core/modules/path/src/Plugin/Field/FieldType/PathItem.php:61
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:240
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} * * @param string $property_name * The name of the property. * @param bool $notify * (optional) Whether to forward the notification to the parent. Defaults to * TRUE. By passing FALSE, overrides of this method can re-use the logic * of parent classes without triggering notification. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:236
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\pathauto\PathautoItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoItem.php:17
- public static Drupal\path\Plugin\Field\FieldType\PathItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/path/src/Plugin/Field/FieldType/PathItem.php:43
- public static Drupal\path\Plugin\Field\FieldType\PathItem::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/path/src/Plugin/Field/FieldType/PathItem.php:134
- public static Drupal\path\Plugin\Field\FieldType\PathItem::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/path/src/Plugin/Field/FieldType/PathItem.php:143
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\path\Plugin\Field\FieldType\PathItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/path/src/Plugin/Field/FieldType/PathItem.php:30
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- protected langcode -> string (2) "es"
- protected valueComputed -> boolean true
- protected delegateMethod($method)
/** * @{inheritdoc} */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoFieldItemList.php:12
- protected computeValue()
/** * @{inheritdoc} */ Defined in <drupal>/modules/contrib/pathauto/src/PathautoFieldItemList.php:32
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->path->defaultAccess()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php:48
- public delete() {@inheritdoc}$0->path->delete()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php:58
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->path->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->path->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->path->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->path->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->path->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->path->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->path->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->path->setValue()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:50
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->path->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public applyDefaultValue($notify = true) {@inheritdoc}$0->path->applyDefaultValue()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:145
- public preSave() {@inheritdoc}$0->path->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->path->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public deleteRevision() {@inheritdoc}$0->path->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- public view($display_options = array()) {@inheritdoc}$0->path->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->path->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->path->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->path->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->path->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->path->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->path->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->path->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->path->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:42
- public getString() {@inheritdoc}$0->path->getString()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:61
- public get($index) {@inheritdoc}$0->path->get()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:69
- public set($index, $value) {@inheritdoc}$0->path->set()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:89
- public removeItem($index) {@inheritdoc}$0->path->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:105
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->path->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->path->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:121
- public offsetUnset($offset): void {@inheritdoc}$0->path->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->path->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->path->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->path->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:97
- public getItemDefinition() {@inheritdoc}$0->path->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->path->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:129
- public count(): int {@inheritdoc}$0->path->count()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:137
- public isEmpty() {@inheritdoc}$0->path->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:113
- public filter($callback) {@inheritdoc}$0->path->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->path->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->path
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->path->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\pathauto\PathautoFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->path->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->path->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->path->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->path->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->path->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->path->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->path->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->path->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->path->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->path->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->path->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->path->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- protected ensureComputedValue() Ensures that values are only computed once.
/** * Ensures that values are only computed once. */ Inherited from Drupal\path\Plugin\Field\FieldType\PathFieldItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:32
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->path, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- rh_action -> Drupal\Core\Field\FieldItemList#11453 (0)$0->rh_action
- No values
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- No values uninitialized
- protected definition -> Drupal\Core\Field\BaseFieldDefinition#2931 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- field_name => string (9) "rh_action"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2932 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (18) "Rabbit Hole action"
- protected arguments -> array (0)
- protected translatedMarkup -> string (18) "Rabbit Hole action"
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (18) "Rabbit Hole action"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2933 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (52) "Specifies which action that Rabbit Hole should take."
- protected arguments -> array (0)
- protected translatedMarkup -> string (52) "Specifies which action that Rabbit Hole should take."
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (52) "Specifies which action that Rabbit Hole should take."
- translatable => boolean true
- provider => string (7) "rh_node"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2934 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (17) "field_item:string"
- settings => array (3)
- max_length => integer 255
- is_ascii => boolean false
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2931 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (6) "string"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected name -> string (9) "rh_action"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->rh_action->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->rh_action->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->rh_action->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->rh_action->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->rh_action->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->rh_action->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->rh_action->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->rh_action->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->rh_action->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->rh_action->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->rh_action->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->rh_action->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->rh_action->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->rh_action->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->rh_action->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->rh_action->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->rh_action->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->rh_action->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_action->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_action->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_action->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->rh_action->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->rh_action->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->rh_action->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->rh_action->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->rh_action->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->rh_action->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->rh_action->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->rh_action->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->rh_action->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->rh_action->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->rh_action->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->rh_action->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->rh_action->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->rh_action->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->rh_action->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->rh_action->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->rh_action->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->rh_action->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->rh_action->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->rh_action
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->rh_action->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\FieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->rh_action->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->rh_action->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->rh_action->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->rh_action->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->rh_action->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->rh_action->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->rh_action->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->rh_action->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->rh_action->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->rh_action->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->rh_action->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->rh_action->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->rh_action, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- rh_redirect -> Drupal\Core\Field\FieldItemList#11455 (0)$0->rh_redirect
- No values
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- No values uninitialized
- protected definition -> Drupal\Core\Field\BaseFieldDefinition#2935 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- field_name => string (11) "rh_redirect"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2936 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (26) "Rabbit Hole redirect path."
- protected arguments -> array (0)
- protected translatedMarkup -> string (26) "Rabbit Hole redirect path."
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (26) "Rabbit Hole redirect path."
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2937 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (52) "The path to where the user should get redirected to."
- protected arguments -> array (0)
- protected translatedMarkup -> string (52) "The path to where the user should get redirected to."
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (52) "The path to where the user should get redirected to."
- translatable => boolean true
- provider => string (7) "rh_node"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2938 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (17) "field_item:string"
- settings => array (3)
- max_length => integer 255
- is_ascii => boolean false
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2935 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (6) "string"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected name -> string (11) "rh_redirect"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->rh_redirect->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->rh_redirect->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->rh_redirect->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->rh_redirect->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->rh_redirect->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->rh_redirect->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->rh_redirect->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->rh_redirect->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->rh_redirect->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->rh_redirect->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->rh_redirect->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->rh_redirect->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->rh_redirect->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->rh_redirect->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->rh_redirect->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->rh_redirect->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->rh_redirect->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->rh_redirect->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->rh_redirect->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->rh_redirect->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->rh_redirect->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->rh_redirect->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->rh_redirect->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->rh_redirect->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->rh_redirect->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->rh_redirect->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->rh_redirect->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->rh_redirect->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->rh_redirect->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->rh_redirect->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->rh_redirect->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->rh_redirect->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->rh_redirect->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->rh_redirect->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->rh_redirect->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->rh_redirect->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->rh_redirect->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->rh_redirect
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->rh_redirect->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\FieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->rh_redirect->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->rh_redirect->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->rh_redirect->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->rh_redirect->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->rh_redirect->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->rh_redirect->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->rh_redirect->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->rh_redirect->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->rh_redirect->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->rh_redirect->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->rh_redirect->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->rh_redirect->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->rh_redirect, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- rh_redirect_response -> Drupal\Core\Field\FieldItemList#11457 (0)$0->rh_redirect_response
- No values
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- No values uninitialized
- protected definition -> Drupal\Core\Field\BaseFieldDefinition#2939 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- field_name => string (20) "rh_redirect_response"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2940 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (34) "Rabbit Hole redirect response code"
- protected arguments -> array (0)
- protected translatedMarkup -> string (34) "Rabbit Hole redirect response code"
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (34) "Rabbit Hole redirect response code"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2941 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (77) "Specifies the HTTP response code that should be used when perform a redirect."
- protected arguments -> array (0)
- protected translatedMarkup -> string (77) "Specifies the HTTP response code that should be used when perform a redirect."
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (77) "Specifies the HTTP response code that should be used when perform a redirect."
- translatable => boolean true
- provider => string (7) "rh_node"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2942 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:integer"
- settings => array (6)
- unsigned => boolean false
- size => string (6) "normal"
- min => string (0) ""
- max => string (0) ""
- prefix => string (0) ""
- suffix => string (0) ""
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2939 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "integer"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected name -> string (20) "rh_redirect_response"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->rh_redirect_response->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->rh_redirect_response->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->rh_redirect_response->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->rh_redirect_response->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->rh_redirect_response->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->rh_redirect_response->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->rh_redirect_response->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->rh_redirect_response->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->rh_redirect_response->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->rh_redirect_response->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->rh_redirect_response->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->rh_redirect_response->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->rh_redirect_response->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->rh_redirect_response->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->rh_redirect_response->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->rh_redirect_response->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->rh_redirect_response->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->rh_redirect_response->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect_response->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect_response->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect_response->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->rh_redirect_response->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->rh_redirect_response->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->rh_redirect_response->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->rh_redirect_response->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->rh_redirect_response->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->rh_redirect_response->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->rh_redirect_response->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->rh_redirect_response->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->rh_redirect_response->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->rh_redirect_response->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->rh_redirect_response->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->rh_redirect_response->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->rh_redirect_response->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->rh_redirect_response->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->rh_redirect_response->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->rh_redirect_response->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->rh_redirect_response->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->rh_redirect_response->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->rh_redirect_response->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->rh_redirect_response
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->rh_redirect_response->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\FieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->rh_redirect_response->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->rh_redirect_response->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->rh_redirect_response->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->rh_redirect_response->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->rh_redirect_response->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->rh_redirect_response->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->rh_redirect_response->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->rh_redirect_response->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->rh_redirect_response->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->rh_redirect_response->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->rh_redirect_response->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->rh_redirect_response->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->rh_redirect_response, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- rh_redirect_fallback_action -> Drupal\Core\Field\FieldItemList#11459 (0)$0->rh_redirect_fallback_action
- No values
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- No values uninitialized
- protected definition -> Drupal\Core\Field\BaseFieldDefinition#2943 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- field_name => string (27) "rh_redirect_fallback_action"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2944 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (36) "Rabbit Hole redirect fallback action"
- protected arguments -> array (0)
- protected translatedMarkup -> string (36) "Rabbit Hole redirect fallback action"
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (36) "Rabbit Hole redirect fallback action"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2945 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (84) "Specifies the action that should be used when the redirect path is invalid o...
Specifies the action that should be used when the redirect path is invalid or empty.
- protected arguments -> array (0)
- protected translatedMarkup -> string (84) "Specifies the action that should be used when the redirect path is invalid o...
Specifies the action that should be used when the redirect path is invalid or empty.
- protected options -> array (0)
- protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#836 (3)
- Properties (3)
- Methods (10)
- protected translators -> array (2)
- 30 => array (1) Depth Limit
- 0 => array (1) Depth Limit
- protected sortedTranslators -> array (2)
- 0 => Drupal\Core\StringTranslation\Translator\CustomStrings#851 Depth Limit
- 1 => Drupal\locale\LocaleTranslation#464 Depth Limit
- protected defaultLangcode -> string (2) "es"
- public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs a TranslationManager object.
/** * Constructs a TranslationManager object. * * @param \Drupal\Core\Language\LanguageDefault $default_language * The default language. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
- public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority = 0): $this Appends a translation system to the translation chain.
/** * Appends a translation system to the translation chain. * * @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator * The translation interface to be appended to the translation chain. * @param int $priority * The priority of the logger being added. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
- protected sortTranslators(): \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] Sorts translators according to priority.
/** * Sorts translators according to priority. * * @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[] * A sorted array of translator objects. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
- public getStringTranslation($langcode, $string, $context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
- public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
- public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:112
- protected doTranslate($string, array $options = array()): string Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * @param string $string * A string containing the English text to translate. * @param array $options * An associative array of additional options, with the following elements: * - 'langcode': The language code to translate to a language other than * what is used to display the page. * - 'context': The context the source string belongs to. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:130
- public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:148
- public setDefaultLangcode($langcode) Sets the default langcode.
/** * Sets the default langcode. * * @param string $langcode * A language code. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:158
- public reset() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:165
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (84) "Specifies the action that should be used when the redirect path is invalid o...
Specifies the action that should be used when the redirect path is invalid or empty.
- translatable => boolean true
- provider => string (7) "rh_node"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2946 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (17) "field_item:string"
- settings => array (3)
- max_length => integer 255
- is_ascii => boolean false
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2943 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (6) "string"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected name -> string (27) "rh_redirect_fallback_action"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->rh_redirect_fallback_action->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->rh_redirect_fallback_action->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->rh_redirect_fallback_action->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->rh_redirect_fallback_action->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->rh_redirect_fallback_action->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->rh_redirect_fallback_action->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->rh_redirect_fallback_action->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->rh_redirect_fallback_action->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->rh_redirect_fallback_action->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->rh_redirect_fallback_action->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->rh_redirect_fallback_action->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->rh_redirect_fallback_action->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->rh_redirect_fallback_action->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->rh_redirect_fallback_action->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->rh_redirect_fallback_action->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->rh_redirect_fallback_action->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->rh_redirect_fallback_action->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->rh_redirect_fallback_action->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect_fallback_action->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect_fallback_action->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->rh_redirect_fallback_action->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->rh_redirect_fallback_action->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->rh_redirect_fallback_action->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->rh_redirect_fallback_action->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->rh_redirect_fallback_action->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->rh_redirect_fallback_action->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->rh_redirect_fallback_action->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->rh_redirect_fallback_action->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->rh_redirect_fallback_action->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->rh_redirect_fallback_action->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->rh_redirect_fallback_action->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->rh_redirect_fallback_action->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->rh_redirect_fallback_action->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->rh_redirect_fallback_action->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->rh_redirect_fallback_action->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->rh_redirect_fallback_action->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->rh_redirect_fallback_action->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->rh_redirect_fallback_action->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->rh_redirect_fallback_action->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->rh_redirect_fallback_action->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->rh_redirect_fallback_action
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->rh_redirect_fallback_action->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\FieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->rh_redirect_fallback_action->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->rh_redirect_fallback_action->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->rh_redirect_fallback_action->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->rh_redirect_fallback_action->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->rh_redirect_fallback_action->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->rh_redirect_fallback_action->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->rh_redirect_fallback_action->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->rh_redirect_fallback_action->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->rh_redirect_fallback_action->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->rh_redirect_fallback_action->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->rh_redirect_fallback_action->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->rh_redirect_fallback_action->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->rh_redirect_fallback_action, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- menu_link -> Drupal\token\MenuLinkFieldItemList#11461 (0)$0->menu_link
- No values
- Properties (10)
- Methods (72)
- Static methods (3)
- Iterator
- No values uninitialized
- protected definition -> Drupal\Core\Field\Entity\BaseFieldOverride#2963 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (27) "node.pagina_libre.menu_link"
- protected status -> boolean true
- protected uuid -> string (36) "e3a53456-ff3d-4c0c-b19b-cc9c9210759c"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (27) "node.pagina_libre.menu_link"
- protected field_name -> string (9) "menu_link"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (15) "Enlace del menu"
- protected description -> UTF-8 string (86) "Enlace de menú calculado para el nodo (solo disponible durante el guardado d...
Enlace de menú calculado para el nodo (solo disponible durante el guardado del nodo).
- protected settings -> array (2)
- handler => string (7) "default"
- handler_settings => array (0)
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2947 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (12)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2948 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (9) "Menu link"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (15) "Enlace del menu"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2949 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (68) "Computed menu link for the node (only available during node saving)."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description UTF-8 string (86) "Enlace de menú calculado para el nodo (solo disponible durante el guardado d...
Enlace de menú calculado para el nodo (solo disponible durante el guardado del nodo).
- revisionable => boolean true
- class => string (35) "\Drupal\token\MenuLinkFieldItemList"
- translatable => boolean true
- internal => boolean true
- display => array (2)
- view => array (1)
- options => array (2) Depth Limit
- form => array (1)
- options => array (1) Depth Limit
- computed => boolean true
- provider => string (5) "token"
- field_name => string (9) "menu_link"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2950 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- target_type => string (17) "menu_link_content"
- handler => string (7) "default"
- handler_settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2947 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (16) "entity_reference"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (9) "menu_link"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- protected valueComputed -> boolean true
- protected computeValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/token/src/MenuLinkFieldItemList.php:20
- public getConstraints() {@inheritdoc}$0->menu_link->getConstraints()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:16
- public referencedEntities() {@inheritdoc}$0->menu_link->referencedEntities()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:26
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->menu_link->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:107
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->menu_link->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->menu_link->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->menu_link->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->menu_link->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->menu_link->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->menu_link->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->menu_link->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->menu_link->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:50
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->menu_link->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->menu_link->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->menu_link->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:145
- public preSave() {@inheritdoc}$0->menu_link->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->menu_link->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->menu_link->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->menu_link->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->menu_link->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->menu_link->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->menu_link->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->menu_link->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->menu_link->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->menu_link->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->menu_link->getValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:42
- public getString() {@inheritdoc}$0->menu_link->getString()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:61
- public get($index) {@inheritdoc}$0->menu_link->get()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:69
- public set($index, $value) {@inheritdoc}$0->menu_link->set()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:89
- public removeItem($index) {@inheritdoc}$0->menu_link->removeItem()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:105
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->menu_link->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->menu_link->offsetExists()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:121
- public offsetUnset($offset): void {@inheritdoc}$0->menu_link->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->menu_link->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->menu_link->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->menu_link->appendItem()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:97
- public getItemDefinition() {@inheritdoc}$0->menu_link->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->menu_link->getIterator()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:129
- public count(): int {@inheritdoc}$0->menu_link->count()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:137
- public isEmpty() {@inheritdoc}$0->menu_link->isEmpty()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:113
- public filter($callback) {@inheritdoc}$0->menu_link->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->menu_link->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->menu_link
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->menu_link->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\token\MenuLinkFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->menu_link->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->menu_link->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->menu_link->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->menu_link->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->menu_link->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->menu_link->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->menu_link->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->menu_link->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->menu_link->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->menu_link->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->menu_link->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->menu_link->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- protected ensureComputedValue() Ensures that values are only computed once.
/** * Ensures that values are only computed once. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php:32
- public static Drupal\Core\Field\EntityReferenceFieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:62
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->menu_link, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- content_translation_source -> string (3) "und"$0->content_translation_source->value
- content_translation_outdated -> string (1) "0"$0->content_translation_outdated->value
- body -> Drupal\text\Plugin\Field\FieldType\TextFieldItemList#11657 (3)$0->body
- Field properties (3)
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- value -> string (72) "<p>dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw</p>"$0->body->value
- summary -> string (0) ""$0->body->summary
- format -> string (9) "full_html"$0->body->format
- value -> string (72) "<p>dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw</p>"
- protected definition -> Drupal\field\Entity\FieldConfig#2969 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (22) "node.pagina_libre.body"
- protected status -> boolean true
- protected uuid -> string (36) "492a3940-6aef-492b-8379-9ca1ef2d6273"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2)
- 0 => string (23) "field.storage.node.body"
- 1 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (4) "text"
- protected isSyncing -> boolean false
- protected id -> string (22) "node.pagina_libre.body"
- protected field_name -> string (4) "body"
- protected field_type -> string (17) "text_with_summary"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (6) "Cuerpo"
- protected description -> string (0) ""
- protected settings -> array (2)
- display_summary => boolean false
- required_summary => boolean false
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11660 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (9) "node.body"
- protected status -> boolean true
- protected uuid -> string (36) "9471e128-0258-4db5-ba04-c423e90038c9"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (1)
- default_config_hash => string (43) "EBUo7qOWqaiZaQ_RC9sLY5IoDKphS34v77VIHSACmVY"
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- module => array (2)
- 0 => string (4) "node"
- 1 => string (4) "text"
- protected isSyncing -> boolean false
- protected id -> string (9) "node.body"
- protected field_name -> string (4) "body"
- protected entity_type -> string (4) "node"
- protected type -> string (17) "text_with_summary"
- protected module -> string (4) "text"
- protected settings -> array (0)
- protected cardinality -> integer 1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean true
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (5)
- value => Drupal\Core\TypedData\DataDefinition#11777 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (3)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11778 Depth Limit
- required => boolean true
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- format => Drupal\Core\TypedData\DataDefinition#11779 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (3)
- type => string (13) "filter_format"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11780 Depth Limit
- settings => array (1) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- processed => Drupal\Core\TypedData\DataDefinition#11781 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (7)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11782 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#11783 Depth Limit
- computed => boolean true
- class => string (26) "\Drupal\text\TextProcessed"
- settings => array (1) Depth Limit
- internal => boolean false
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- summary => Drupal\Core\TypedData\DataDefinition#11784 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (2)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11785 Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- summary_processed => Drupal\Core\TypedData\DataDefinition#11786 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (6)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11787 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#11788 Depth Limit
- computed => boolean true
- class => string (26) "\Drupal\text\TextProcessed"
- settings => array (1) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11658 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (28) "field_item:text_with_summary"
- settings => array (2)
- display_summary => boolean false
- required_summary => boolean false
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2969 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (4) "body"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (1)
- 0 => Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem#11793 (9)
- Properties (9)
- Methods (49)
- Static methods (24)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11658 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (28) "field_item:text_with_summary"
- settings => array (2)
- display_summary => boolean false
- required_summary => boolean false
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2969 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (22) "node.pagina_libre.body"
- protected status -> boolean true
- protected uuid -> string (36) "492a3940-6aef-492b-8379-9ca1ef2d6273"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2) Depth Limit
- module => array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (22) "node.pagina_libre.body"
- protected field_name -> string (4) "body"
- protected field_type -> string (17) "text_with_summary"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (6) "Cuerpo"
- protected description -> string (0) ""
- protected settings -> array (2)
- display_summary => boolean false
- required_summary => boolean false
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11660 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1) Depth Limit
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (9) "node.body"
- protected status -> boolean true
- protected uuid -> string (36) "9471e128-0258-4db5-ba04-c423e90038c9"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (1) Depth Limit
- protected trustedData -> boolean false
- protected dependencies -> array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (9) "node.body"
- protected field_name -> string (4) "body"
- protected entity_type -> string (4) "node"
- protected type -> string (17) "text_with_summary"
- protected module -> string (4) "text"
- protected settings -> array (0)
- protected cardinality -> integer 1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean true
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (5) Depth Limit
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11658 Recursion
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 0
- protected parent -> Drupal\text\Plugin\Field\FieldType\TextFieldItemList#11657 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (3)
- value => string (72) "<p>dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw</p>"
- summary => string (0) ""
- format => string (9) "full_html"
- protected properties -> array (4)
- processed => Drupal\text\TextProcessed#11794 (8)
- Properties (8)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataDefinition#11781 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (7) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (9) "processed"
- protected parent -> Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem#11793 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected processed -> Drupal\filter\FilterProcessResult#13152 (5)
- Properties (5)
- Methods (21)
- Static methods (5)
- toString
- protected cacheContexts -> array (4) Depth Limit
- protected cacheTags -> array (1) Depth Limit
- protected cacheMaxAge -> integer -1
- protected attachments -> array (0)
- protected processedText -> string (72) "<p>dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw</p>"
- public __construct($processed_text = '') Constructs a FilterProcessResult object.
/** * Constructs a FilterProcessResult object. * * @param string $processed_text * The text as processed by a text filter. */ Defined in <drupal>/core/modules/filter/src/FilterProcessResult.php:81
- public getProcessedText(): string Gets the processed text.
/** * Gets the processed text. * * @return string * The processed text. */ Defined in <drupal>/core/modules/filter/src/FilterProcessResult.php:91
- public __toString(): string Gets the processed text.
/** * Gets the processed text. * * @return string * The processed text. */ Defined in <drupal>/core/modules/filter/src/FilterProcessResult.php:101
- public setProcessedText($processed_text): $this Sets the processed text.
/** * Sets the processed text. * * @param string $processed_text * The text as processed by a text filter. * * @return $this */ Defined in <drupal>/core/modules/filter/src/FilterProcessResult.php:113
- public createPlaceholder($callback, array $args): string Creates a placeholder.
/** * Creates a placeholder. * * This generates its own placeholder markup for one major reason: to not have * FilterProcessResult depend on the Renderer service, because this is a value * object. As a side-effect and added benefit, this makes it easier to * distinguish placeholders for filtered text versus generic render system * placeholders. * * @param string $callback * The #lazy_builder callback that will replace the placeholder with its * eventual markup. * @param array $args * The arguments for the #lazy_builder callback. * * @return string * The placeholder markup. */ Defined in <drupal>/core/modules/filter/src/FilterProcessResult.php:136
- public merge(Drupal\Core\Cache\CacheableMetadata $other): static Creates a new bubbleable metadata object by merging this one with another.
/** * Creates a new bubbleable metadata object by merging this one with another. * * @param \Drupal\Core\Cache\CacheableMetadata $other * The other bubbleable metadata object. * * @return static * A new bubbleable metadata object, with the merged data. */ Inherited from Drupal\Core\Render\BubbleableMetadata Defined in <drupal>/core/lib/Drupal/Core/Render/BubbleableMetadata.php:26
- public applyTo(array &$build) Applies the values of this bubbleable metadata object to a render array.
/** * Applies the values of this bubbleable metadata object to a render array. * * @param array &$build * A render array. */ Inherited from Drupal\Core\Render\BubbleableMetadata Defined in <drupal>/core/lib/Drupal/Core/Render/BubbleableMetadata.php:52
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Render\BubbleableMetadata Defined in <drupal>/core/lib/Drupal/Core/Render/BubbleableMetadata.php:95
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableMetadata.php:17
- public setCacheTags(array $cache_tags): $this Sets cache tags.
/** * Sets cache tags. * * @param string[] $cache_tags * The cache tags to be associated. * * @return $this */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableMetadata.php:29
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableMetadata.php:37
- public setCacheContexts(array $cache_contexts): $this Sets cache contexts.
/** * Sets cache contexts. * * @param string[] $cache_contexts * The cache contexts to be associated. * * @return $this */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableMetadata.php:49
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableMetadata.php:57
- public setCacheMaxAge($max_age): $this Sets the maximum age (in seconds).
/** * Sets the maximum age (in seconds). * * Defaults to Cache::PERMANENT * * @param int $max_age * The max age to associate. * * @return $this * * @throws \InvalidArgumentException * If a non-integer value is supplied. */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableMetadata.php:74
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Cache\CacheableMetadata Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public getAttachments() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Render\BubbleableMetadata Defined in <drupal>/core/lib/Drupal/Core/Render/AttachmentsTrait.php:22
- public addAttachments(array $attachments) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Render\BubbleableMetadata Defined in <drupal>/core/lib/Drupal/Core/Render/AttachmentsTrait.php:29
- public setAttachments(array $attachments) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Render\BubbleableMetadata Defined in <drupal>/core/lib/Drupal/Core/Render/AttachmentsTrait.php:37
- public static Drupal\Core\Render\BubbleableMetadata::createFromRenderArray(array $build): static Creates a bubbleable metadata object with values taken from a render array.
/** * Creates a bubbleable metadata object with values taken from a render array. * * @param array $build * A render array. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Render/BubbleableMetadata.php:65
- public static Drupal\Core\Render\BubbleableMetadata::createFromObject($object): static Creates a bubbleable metadata object from a depended object.
/** * Creates a bubbleable metadata object from a depended object. * * @param \Drupal\Core\Cache\CacheableDependencyInterface|mixed $object * The object whose cacheability metadata to retrieve. If it implements * CacheableDependencyInterface, its cacheability metadata will be used, * otherwise, the passed in object must be assumed to be uncacheable, so * max-age 0 is set. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Render/BubbleableMetadata.php:82
- public static Drupal\Core\Render\BubbleableMetadata::mergeAttachments(array $a, array $b): array Merges two attachments arrays (which live under the '#attached' key).
/** * Merges two attachments arrays (which live under the '#attached' key). * * The values under the 'drupalSettings' key are merged in a special way, to * match the behavior of: * * @code * jQuery.extend(true, {}, $settings_items[0], $settings_items[1], ...) * @endcode * * This means integer indices are preserved just like string indices are, * rather than re-indexed as is common in PHP array merging. * * Example: * @code * function module1_page_attachments(&$page) { * $page['a']['#attached']['drupalSettings']['foo'] = ['a', 'b', 'c']; * } * function module2_page_attachments(&$page) { * $page['#attached']['drupalSettings']['foo'] = ['d']; * } * // When the page is rendered after the above code, and the browser runs the * // resulting <SCRIPT> tags, the value of drupalSettings.foo is * // ['d', 'b', 'c'], not ['a', 'b', 'c', 'd']. * @endcode * * By following jQuery.extend() merge logic rather than common PHP array merge * logic, the following are ensured: * - Attaching JavaScript settings is idempotent: attaching the same settings * twice does not change the output sent to the browser. * - If pieces of the page are rendered in separate PHP requests and the * returned settings are merged by JavaScript, the resulting settings are * the same as if rendered in one PHP request and merged by PHP. * * @param array $a * An attachments array. * @param array $b * Another attachments array. * * @return array * The merged attachments array. */ Defined in <drupal>/core/lib/Drupal/Core/Render/BubbleableMetadata.php:147
- public static Drupal\Core\Cache\CacheableMetadata::createFromRenderArray(array $build): static Creates a CacheableMetadata object with values taken from a render array.
/** * Creates a CacheableMetadata object with values taken from a render array. * * @param array $build * A render array. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableMetadata.php:149
- public static Drupal\Core\Cache\CacheableMetadata::createFromObject($object): static Creates a CacheableMetadata object from a depended object.
/** * Creates a CacheableMetadata object from a depended object. * * @param \Drupal\Core\Cache\CacheableDependencyInterface|mixed $object * The object whose cacheability metadata to retrieve. If it implements * CacheableDependencyInterface, its cacheability metadata will be used, * otherwise, the passed in object must be assumed to be uncacheable, so * max-age 0 is set. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableMetadata.php:168
- processed string (72) "<p>dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw</p>"
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:31
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:43
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:73
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:84
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:92
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:100
- protected getRenderer(): \Drupal\Core\Render\RendererInterface Returns the renderer service.
/** * Returns the renderer service. * * @return \Drupal\Core\Render\RendererInterface * The renderer service. */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:111
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:112
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- summary_processed => Drupal\text\TextProcessed#11795 (8)
- Properties (8)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataDefinition#11786 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (6) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (17) "summary_processed"
- protected parent -> Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem#11793 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected processed -> null
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:31
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:43
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:73
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:84
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:92
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:100
- protected getRenderer(): \Drupal\Core\Render\RendererInterface Returns the renderer service.
/** * Returns the renderer service. * * @return \Drupal\Core\Render\RendererInterface * The renderer service. */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:111
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:112
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- summary => Drupal\Core\TypedData\Plugin\DataType\StringData#13154 (8)
- Properties (8)
- Methods (25)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataDefinition#11784 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (2) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (7) "summary"
- protected parent -> Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem#11793 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected value -> string (0) ""
- public getCastedValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php:27
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\PrimitiveBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/PrimitiveBase.php:20
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\PrimitiveBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/PrimitiveBase.php:27
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:112
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- value => Drupal\Core\TypedData\Plugin\DataType\StringData#13153 (8)
- Properties (8)
- Methods (25)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataDefinition#11777 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (3) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (5) "value"
- protected parent -> Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem#11793 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected value -> string (72) "<p>dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw</p>"
- public getCastedValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/StringData.php:27
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\PrimitiveBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/PrimitiveBase.php:20
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\PrimitiveBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/PrimitiveBase.php:27
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:112
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php:87
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php:95
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php:119
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\text\Plugin\Field\FieldType\TextItemBase Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:99
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\text\Plugin\Field\FieldType\TextItemBase Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:116
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:233
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php:33
- public static Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php:43
- public static Drupal\text\Plugin\Field\FieldType\TextWithSummaryItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextWithSummaryItem.php:62
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::validateAllowedFormats(array &$element, Drupal\Core\Form\FormStateInterface $form_state) Render API callback: Processes the allowed formats value.
/** * Render API callback: Processes the allowed formats value. * * Ensure the element's value is an indexed array of selected format IDs. * This function is assigned as an #element_validate callback. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:51
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:59
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:131
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:20
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:76
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- protected langcode -> string (2) "es"
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->body->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextFieldItemList.php:16
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->body->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->body->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->body->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->body->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->body->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->body->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->body->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->body->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->body->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->body->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->body->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->body->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->body->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->body->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->body->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->body->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->body->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->body->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->body->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->body->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->body->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->body->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->body->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->body->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->body->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->body->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->body->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->body->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->body->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->body->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->body->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->body->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->body->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->body->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->body->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->body->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->body->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->body->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->body->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->body
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->body->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\text\Plugin\Field\FieldType\TextFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->body->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->body->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->body->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->body->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->body->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->body->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->body->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->body->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->body->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->body->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->body->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->body->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->body, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- field_content_block -> Drupal\Core\Field\EntityReferenceFieldItemList#11797 (2)$0->field_content_block
- Values (2)
- Properties (9)
- Methods (70)
- Static methods (3)
- Iterator
- 0 => array (1)$0->field_content_block->getValue()[0]
- target_id => string (3) "527"$0->field_content_block->getValue()[0]['target_id']
- target_id => string (3) "527"
- 1 => array (1)$0->field_content_block->getValue()[1]
- target_id => string (3) "622"$0->field_content_block->getValue()[1]['target_id']
- target_id => string (3) "622"
- 0 => array (1)
- protected definition -> Drupal\field\Entity\FieldConfig#2970 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_content_block"
- protected status -> boolean true
- protected uuid -> string (36) "24e52fbc-71fd-43eb-85f0-2123d2702b44"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3)
- 0 => string (38) "field.storage.node.field_content_block"
- 1 => string (23) "node.type.content_block"
- 2 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_content_block"
- protected field_name -> string (19) "field_content_block"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (19) "Bloque de contenido"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (12) "default:node"
- handler_settings => array (4)
- target_bundles => array (1)
- content_block => string (13) "content_block"
- sort => array (2)
- field => string (5) "_none"
- direction => string (3) "ASC"
- auto_create => boolean false
- auto_create_bundle => string (0) ""
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11688 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.field_content_block"
- protected status -> boolean true
- protected uuid -> string (36) "00402d49-c7f0-47a4-a287-b4585dcd3f34"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- module => array (1)
- 0 => string (4) "node"
- protected isSyncing -> boolean false
- protected id -> string (24) "node.field_content_block"
- protected field_name -> string (19) "field_content_block"
- protected entity_type -> string (4) "node"
- protected type -> string (16) "entity_reference"
- protected module -> string (4) "core"
- protected settings -> array (1)
- target_type => string (4) "node"
- protected cardinality -> integer -1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (2)
- target_id => Drupal\Core\TypedData\DataReferenceTargetDefinition#11800 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (4)
- type => string (7) "integer"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11801 Depth Limit
- settings => array (1) Depth Limit
- required => boolean true
- protected typedDataManager -> null
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceTargetDefinition.php:22
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- entity => Drupal\Core\TypedData\DataReferenceDefinition#11802 (3)
- Properties (3)
- Methods (36)
- Static methods (4)
- protected definition -> array (6)
- type => string (16) "entity_reference"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#1361 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#11804 Depth Limit
- computed => boolean true
- read-only => boolean false
- constraints => array (1) Depth Limit
- protected typedDataManager -> null
- protected targetDefinition -> Drupal\Core\Entity\TypedData\EntityDataDefinition#11805 (3)
- Properties (3)
- Methods (41)
- Static methods (4)
- protected definition -> array (12) Depth Limit
- protected typedDataManager -> null
- protected propertyDefinitions -> null
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:69
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:100
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:119
- public setEntityTypeId($entity_type_id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:126
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:133
- public setBundles(?array $bundles = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:141
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:25
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:35
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:42
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Entity\TypedData\EntityDataDefinition::create($entity_type_id = null, $bundle = null): static Creates a new entity definition.
/** * Creates a new entity definition. * * @param string $entity_type_id * (optional) The ID of the entity type, or NULL if the entity type is * unknown. Defaults to NULL. * @param string $bundle * (optional) The bundle of the entity type, or NULL if the bundle is * unknown. Defaults to NULL. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:24
- public static Drupal\Core\Entity\TypedData\EntityDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:58
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public getTargetDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:48
- public setTargetDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the definition of the referenced data.
/** * Sets the definition of the referenced data. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The target definition to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:60
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataReferenceDefinition::create($target_data_type): static Creates a new data reference definition.
/** * Creates a new data reference definition. * * @param string $target_data_type * The data type of the referenced data. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:28
- public static Drupal\Core\TypedData\DataReferenceDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:37
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11798 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- handler => string (12) "default:node"
- handler_settings => array (4)
- target_bundles => array (1) Depth Limit
- sort => array (2) Depth Limit
- auto_create => boolean false
- auto_create_bundle => string (0) ""
- target_type => string (4) "node"
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2970 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (19) "field_content_block"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (2)
- 0 => Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11807 (9)
- Properties (9)
- Methods (54)
- Static methods (36)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11798 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- handler => string (12) "default:node"
- handler_settings => array (4) Depth Limit
- target_type => string (4) "node"
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2970 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_content_block"
- protected status -> boolean true
- protected uuid -> string (36) "24e52fbc-71fd-43eb-85f0-2123d2702b44"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_content_block"
- protected field_name -> string (19) "field_content_block"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (19) "Bloque de contenido"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (12) "default:node"
- handler_settings => array (4) Depth Limit
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11688 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1) Depth Limit
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.field_content_block"
- protected status -> boolean true
- protected uuid -> string (36) "00402d49-c7f0-47a4-a287-b4585dcd3f34"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (24) "node.field_content_block"
- protected field_name -> string (19) "field_content_block"
- protected entity_type -> string (4) "node"
- protected type -> string (16) "entity_reference"
- protected module -> string (4) "core"
- protected settings -> array (1) Depth Limit
- protected cardinality -> integer -1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (2) Depth Limit
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11798 Recursion
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 0
- protected parent -> Drupal\Core\Field\EntityReferenceFieldItemList#11797 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (1)
- target_id => string (3) "527"
- protected properties -> array (1)
- entity => Drupal\Core\Entity\Plugin\DataType\EntityReference#11808 (9)
- Properties (9)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataReferenceDefinition#11802 (3)
- Properties (3)
- Methods (36)
- Static methods (4)
- protected definition -> array (6) Depth Limit
- protected typedDataManager -> null
- protected targetDefinition -> Drupal\Core\Entity\TypedData\EntityDataDefinition#11805 Depth Limit
- public getTargetDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:48
- public setTargetDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the definition of the referenced data.
/** * Sets the definition of the referenced data. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The target definition to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:60
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataReferenceDefinition::create($target_data_type): static Creates a new data reference definition.
/** * Creates a new data reference definition. * * @param string $target_data_type * The data type of the referenced data. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:28
- public static Drupal\Core\TypedData\DataReferenceDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:37
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (6) "entity"
- protected parent -> Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11807 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected target -> uninitialized
- protected id -> string (3) "527"
- public getTargetDefinition(): \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface Gets the definition of the referenced entity.
/** * Gets the definition of the referenced entity. * * @return \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface * The reference target's definition. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:51
- public isTargetNew(): bool Checks whether the target entity has not been saved yet.
/** * Checks whether the target entity has not been saved yet. * * @return bool * TRUE if the entity is new, FALSE otherwise. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:61
- public getTarget() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:69
- public getTargetIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:83
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:95
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:122
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataReferenceBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceBase.php:36
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:212
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:227
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:271
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:285
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:301
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:315
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:414
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:441
- public hasNewEntity(): bool Determines whether the item holds an unsaved entity.
/** * Determines whether the item holds an unsaved entity. * * This is notably used for "autocreate" widgets, and more generally to * support referencing freshly created entities (they will get saved * automatically as the hosting entity gets saved). * * @return bool * TRUE if the item holds an unsaved entity. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:532
- public getPossibleValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:648
- public getPossibleOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:655
- public getSettableValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:662
- public getSettableOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:672
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php:20
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:49
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:58
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:68
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:116
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:131
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:158
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:165
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:333
- protected static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getRandomBundle(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $selection_settings): string|null Gets a bundle for a given entity type and selection options.
/** * Gets a bundle for a given entity type and selection options. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param array $selection_settings * An array of selection settings. * * @return string|null * Either the bundle string, or NULL if there is no bundle. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:399
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsFormValidate(array $form, Drupal\Core\Form\FormStateInterface $form_state) Form element validation handler; Invokes selection plugin's validation.
/** * Form element validation handler; Invokes selection plugin's validation. * * @param array $form * The form where the settings form is being included in. * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:516
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:539
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:579
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:589
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcess($form, Drupal\Core\Form\FormStateInterface $form_state) Render API callback: Processes the field settings form.
/** * Render API callback: Processes the field settings form. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:698
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcessElement(&$element, $main_form) Adds the field settings to AJAX form elements.
/** * Adds the field settings to AJAX form elements. * * @see static::fieldSettingsAjaxProcess() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:708
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::formProcessMergeParent($element) Render API callback that moves entity reference elements up a level.
/** * Render API callback that moves entity reference elements up a level. * * The elements (i.e. 'handler_settings') are moved for easier processing by * the validation and submission handlers. * * @see _entity_reference_field_settings_process() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:731
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::settingsAjaxSubmit($form, Drupal\Core\Form\FormStateInterface $form_state) Submit handler for the non-JS case.
/** * Submit handler for the non-JS case. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:743
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getPreconfiguredOptions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:752
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:780
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- abstract public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array Returns the referenceable entity types and bundles.
/** * Returns the referenceable entity types and bundles. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition for which to retrieve the referenceable entity * types and bundles. * * @return array * An array of referenceable bundles where the array is keyed by the entity * type ID, with values an array of bundle names. (It is a single-value * array with the entity type ID if the entity type does not implement * bundles.) */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php:28
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 1 => Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11809 (9)
- Properties (9)
- Methods (54)
- Static methods (36)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11798 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- handler => string (12) "default:node"
- handler_settings => array (4) Depth Limit
- target_type => string (4) "node"
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2970 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_content_block"
- protected status -> boolean true
- protected uuid -> string (36) "24e52fbc-71fd-43eb-85f0-2123d2702b44"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_content_block"
- protected field_name -> string (19) "field_content_block"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (19) "Bloque de contenido"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (12) "default:node"
- handler_settings => array (4) Depth Limit
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11688 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1) Depth Limit
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.field_content_block"
- protected status -> boolean true
- protected uuid -> string (36) "00402d49-c7f0-47a4-a287-b4585dcd3f34"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (24) "node.field_content_block"
- protected field_name -> string (19) "field_content_block"
- protected entity_type -> string (4) "node"
- protected type -> string (16) "entity_reference"
- protected module -> string (4) "core"
- protected settings -> array (1) Depth Limit
- protected cardinality -> integer -1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (2) Depth Limit
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11798 Recursion
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 1
- protected parent -> Drupal\Core\Field\EntityReferenceFieldItemList#11797 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (1)
- target_id => string (3) "622"
- protected properties -> array (1)
- entity => Drupal\Core\Entity\Plugin\DataType\EntityReference#11810 (9)
- Properties (9)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataReferenceDefinition#11802 (3)
- Properties (3)
- Methods (36)
- Static methods (4)
- protected definition -> array (6) Depth Limit
- protected typedDataManager -> null
- protected targetDefinition -> Drupal\Core\Entity\TypedData\EntityDataDefinition#11805 Depth Limit
- public getTargetDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:48
- public setTargetDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the definition of the referenced data.
/** * Sets the definition of the referenced data. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The target definition to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:60
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataReferenceDefinition::create($target_data_type): static Creates a new data reference definition.
/** * Creates a new data reference definition. * * @param string $target_data_type * The data type of the referenced data. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:28
- public static Drupal\Core\TypedData\DataReferenceDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:37
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (6) "entity"
- protected parent -> Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11809 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected target -> uninitialized
- protected id -> string (3) "622"
- public getTargetDefinition(): \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface Gets the definition of the referenced entity.
/** * Gets the definition of the referenced entity. * * @return \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface * The reference target's definition. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:51
- public isTargetNew(): bool Checks whether the target entity has not been saved yet.
/** * Checks whether the target entity has not been saved yet. * * @return bool * TRUE if the entity is new, FALSE otherwise. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:61
- public getTarget() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:69
- public getTargetIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:83
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:95
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:122
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataReferenceBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceBase.php:36
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:212
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:227
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:271
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:285
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:301
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:315
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:414
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:441
- public hasNewEntity(): bool Determines whether the item holds an unsaved entity.
/** * Determines whether the item holds an unsaved entity. * * This is notably used for "autocreate" widgets, and more generally to * support referencing freshly created entities (they will get saved * automatically as the hosting entity gets saved). * * @return bool * TRUE if the item holds an unsaved entity. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:532
- public getPossibleValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:648
- public getPossibleOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:655
- public getSettableValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:662
- public getSettableOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:672
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php:20
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:49
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:58
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:68
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:116
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:131
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:158
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:165
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:333
- protected static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getRandomBundle(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $selection_settings): string|null Gets a bundle for a given entity type and selection options.
/** * Gets a bundle for a given entity type and selection options. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param array $selection_settings * An array of selection settings. * * @return string|null * Either the bundle string, or NULL if there is no bundle. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:399
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsFormValidate(array $form, Drupal\Core\Form\FormStateInterface $form_state) Form element validation handler; Invokes selection plugin's validation.
/** * Form element validation handler; Invokes selection plugin's validation. * * @param array $form * The form where the settings form is being included in. * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:516
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:539
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:579
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:589
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcess($form, Drupal\Core\Form\FormStateInterface $form_state) Render API callback: Processes the field settings form.
/** * Render API callback: Processes the field settings form. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:698
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcessElement(&$element, $main_form) Adds the field settings to AJAX form elements.
/** * Adds the field settings to AJAX form elements. * * @see static::fieldSettingsAjaxProcess() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:708
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::formProcessMergeParent($element) Render API callback that moves entity reference elements up a level.
/** * Render API callback that moves entity reference elements up a level. * * The elements (i.e. 'handler_settings') are moved for easier processing by * the validation and submission handlers. * * @see _entity_reference_field_settings_process() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:731
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::settingsAjaxSubmit($form, Drupal\Core\Form\FormStateInterface $form_state) Submit handler for the non-JS case.
/** * Submit handler for the non-JS case. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:743
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getPreconfiguredOptions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:752
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:780
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- abstract public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array Returns the referenceable entity types and bundles.
/** * Returns the referenceable entity types and bundles. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition for which to retrieve the referenceable entity * types and bundles. * * @return array * An array of referenceable bundles where the array is keyed by the entity * type ID, with values an array of bundle names. (It is a single-value * array with the entity type ID if the entity type does not implement * bundles.) */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php:28
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- protected langcode -> string (2) "es"
- public getConstraints() {@inheritdoc}$0->field_content_block->getConstraints()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:16
- public referencedEntities() {@inheritdoc}$0->field_content_block->referencedEntities()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:26
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_content_block->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:107
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->field_content_block->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->field_content_block->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->field_content_block->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->field_content_block->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->field_content_block->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->field_content_block->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->field_content_block->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->field_content_block->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->field_content_block->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->field_content_block->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->field_content_block->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->field_content_block->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->field_content_block->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->field_content_block->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->field_content_block->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->field_content_block->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->field_content_block->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_content_block->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_content_block->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->field_content_block->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->field_content_block->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->field_content_block->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->field_content_block->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->field_content_block->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->field_content_block->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->field_content_block->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->field_content_block->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->field_content_block->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->field_content_block->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->field_content_block->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->field_content_block->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->field_content_block->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->field_content_block->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->field_content_block->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->field_content_block->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->field_content_block->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->field_content_block->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->field_content_block->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->field_content_block
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->field_content_block->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\EntityReferenceFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->field_content_block->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->field_content_block->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->field_content_block->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->field_content_block->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->field_content_block->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->field_content_block->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->field_content_block->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->field_content_block->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->field_content_block->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->field_content_block->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->field_content_block->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->field_content_block->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getConstraints() {@inheritdoc}
- public static Drupal\Core\Field\EntityReferenceFieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:62
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->field_content_block, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- field_domain_access -> Drupal\Core\Field\EntityReferenceFieldItemList#11812 (4)$0->field_domain_access
- Values (4)
- Properties (9)
- Methods (70)
- Static methods (3)
- Iterator
- 0 => array (1)$0->field_domain_access->getValue()[0]
- target_id => string (18) "cbit2_bitanube_com"$0->field_domain_access->getValue()[0]['target_id']
- target_id => string (18) "cbit2_bitanube_com"
- 1 => array (1)$0->field_domain_access->getValue()[1]
- target_id => string (17) "cbit_bitanube_com"$0->field_domain_access->getValue()[1]['target_id']
- target_id => string (17) "cbit_bitanube_com"
- 2 => array (1)$0->field_domain_access->getValue()[2]
- target_id => string (21) "creative_bitanube_com"$0->field_domain_access->getValue()[2]['target_id']
- target_id => string (21) "creative_bitanube_com"
- 3 => array (1)$0->field_domain_access->getValue()[3]
- target_id => string (21) "demo1_zausen_software"$0->field_domain_access->getValue()[3]['target_id']
- target_id => string (21) "demo1_zausen_software"
- 0 => array (1)
- protected definition -> Drupal\field\Entity\FieldConfig#2971 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "4a32f9cd-eb0d-462c-b416-e505e325933d"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (1)
- domain_access => array (1)
- add_current_domain => boolean true
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2)
- 0 => string (38) "field.storage.node.field_domain_access"
- 1 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (13) "domain_access"
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (13) "Domain Access"
- protected description -> string (47) "Select the affiliate domain(s) for this content"
- protected settings -> array (2)
- handler => string (14) "default:domain"
- handler_settings => array (2)
- target_bundles => null
- sort => array (2)
- field => string (6) "weight"
- direction => string (3) "ASC"
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> null
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11697 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "94b14b82-8e49-4839-829b-141b474503f4"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (1)
- default_config_hash => string (43) "NMaXfffaoOhBnZCIYpQB0A08AFvuTV2TpqblBmCkLb4"
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- module => array (2)
- 0 => string (6) "domain"
- 1 => string (4) "node"
- enforced => array (1)
- module => array (1)
- 0 => string (13) "domain_access"
- protected isSyncing -> boolean false
- protected id -> string (24) "node.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected entity_type -> string (4) "node"
- protected type -> string (16) "entity_reference"
- protected module -> string (4) "core"
- protected settings -> array (1)
- target_type => string (6) "domain"
- protected cardinality -> integer -1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (2)
- target_id => Drupal\Core\TypedData\DataReferenceTargetDefinition#11815 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (3)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11816 Depth Limit
- required => boolean true
- protected typedDataManager -> null
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceTargetDefinition.php:22
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- entity => Drupal\Core\TypedData\DataReferenceDefinition#11817 (3)
- Properties (3)
- Methods (36)
- Static methods (4)
- protected definition -> array (6)
- type => string (16) "entity_reference"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#1239 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#11819 Depth Limit
- computed => boolean true
- read-only => boolean false
- constraints => array (1) Depth Limit
- protected typedDataManager -> null
- protected targetDefinition -> Drupal\Core\Entity\TypedData\EntityDataDefinition#11820 (3)
- Properties (3)
- Methods (41)
- Static methods (4)
- protected definition -> array (12) Depth Limit
- protected typedDataManager -> null
- protected propertyDefinitions -> null
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:69
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:100
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:119
- public setEntityTypeId($entity_type_id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:126
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:133
- public setBundles(?array $bundles = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:141
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:25
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:35
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ComplexDataDefinitionBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/ComplexDataDefinitionBase.php:42
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Entity\TypedData\EntityDataDefinition::create($entity_type_id = null, $bundle = null): static Creates a new entity definition.
/** * Creates a new entity definition. * * @param string $entity_type_id * (optional) The ID of the entity type, or NULL if the entity type is * unknown. Defaults to NULL. * @param string $bundle * (optional) The bundle of the entity type, or NULL if the bundle is * unknown. Defaults to NULL. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:24
- public static Drupal\Core\Entity\TypedData\EntityDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php:58
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public getTargetDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:48
- public setTargetDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the definition of the referenced data.
/** * Sets the definition of the referenced data. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The target definition to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:60
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataReferenceDefinition::create($target_data_type): static Creates a new data reference definition.
/** * Creates a new data reference definition. * * @param string $target_data_type * The data type of the referenced data. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:28
- public static Drupal\Core\TypedData\DataReferenceDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:37
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- handler => string (14) "default:domain"
- handler_settings => array (2)
- target_bundles => null
- sort => array (2) Depth Limit
- target_type => string (6) "domain"
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2971 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (19) "field_domain_access"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (4)
- 0 => Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11822 (9)
- Properties (9)
- Methods (54)
- Static methods (36)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- handler => string (14) "default:domain"
- handler_settings => array (2) Depth Limit
- target_type => string (6) "domain"
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2971 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "4a32f9cd-eb0d-462c-b416-e505e325933d"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (1)
- domain_access => array (1) Depth Limit
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2) Depth Limit
- module => array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (13) "Domain Access"
- protected description -> string (47) "Select the affiliate domain(s) for this content"
- protected settings -> array (2)
- handler => string (14) "default:domain"
- handler_settings => array (2) Depth Limit
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> null
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11697 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1) Depth Limit
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "94b14b82-8e49-4839-829b-141b474503f4"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (1) Depth Limit
- protected trustedData -> boolean false
- protected dependencies -> array (2) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (24) "node.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected entity_type -> string (4) "node"
- protected type -> string (16) "entity_reference"
- protected module -> string (4) "core"
- protected settings -> array (1) Depth Limit
- protected cardinality -> integer -1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (2) Depth Limit
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 Recursion
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 0
- protected parent -> Drupal\Core\Field\EntityReferenceFieldItemList#11812 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (1)
- target_id => string (18) "cbit2_bitanube_com"
- protected properties -> array (1)
- entity => Drupal\Core\Entity\Plugin\DataType\EntityReference#11823 (9)
- Properties (9)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataReferenceDefinition#11817 (3)
- Properties (3)
- Methods (36)
- Static methods (4)
- protected definition -> array (6) Depth Limit
- protected typedDataManager -> null
- protected targetDefinition -> Drupal\Core\Entity\TypedData\EntityDataDefinition#11820 Depth Limit
- public getTargetDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:48
- public setTargetDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the definition of the referenced data.
/** * Sets the definition of the referenced data. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The target definition to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:60
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataReferenceDefinition::create($target_data_type): static Creates a new data reference definition.
/** * Creates a new data reference definition. * * @param string $target_data_type * The data type of the referenced data. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:28
- public static Drupal\Core\TypedData\DataReferenceDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:37
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (6) "entity"
- protected parent -> Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11822 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected target -> uninitialized
- protected id -> string (18) "cbit2_bitanube_com"
- public getTargetDefinition(): \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface Gets the definition of the referenced entity.
/** * Gets the definition of the referenced entity. * * @return \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface * The reference target's definition. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:51
- public isTargetNew(): bool Checks whether the target entity has not been saved yet.
/** * Checks whether the target entity has not been saved yet. * * @return bool * TRUE if the entity is new, FALSE otherwise. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:61
- public getTarget() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:69
- public getTargetIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:83
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:95
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:122
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataReferenceBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceBase.php:36
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:212
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:227
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:271
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:285
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:301
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:315
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:414
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:441
- public hasNewEntity(): bool Determines whether the item holds an unsaved entity.
/** * Determines whether the item holds an unsaved entity. * * This is notably used for "autocreate" widgets, and more generally to * support referencing freshly created entities (they will get saved * automatically as the hosting entity gets saved). * * @return bool * TRUE if the item holds an unsaved entity. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:532
- public getPossibleValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:648
- public getPossibleOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:655
- public getSettableValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:662
- public getSettableOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:672
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php:20
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:49
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:58
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:68
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:116
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:131
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:158
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:165
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:333
- protected static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getRandomBundle(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $selection_settings): string|null Gets a bundle for a given entity type and selection options.
/** * Gets a bundle for a given entity type and selection options. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param array $selection_settings * An array of selection settings. * * @return string|null * Either the bundle string, or NULL if there is no bundle. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:399
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsFormValidate(array $form, Drupal\Core\Form\FormStateInterface $form_state) Form element validation handler; Invokes selection plugin's validation.
/** * Form element validation handler; Invokes selection plugin's validation. * * @param array $form * The form where the settings form is being included in. * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:516
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:539
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:579
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:589
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcess($form, Drupal\Core\Form\FormStateInterface $form_state) Render API callback: Processes the field settings form.
/** * Render API callback: Processes the field settings form. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:698
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcessElement(&$element, $main_form) Adds the field settings to AJAX form elements.
/** * Adds the field settings to AJAX form elements. * * @see static::fieldSettingsAjaxProcess() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:708
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::formProcessMergeParent($element) Render API callback that moves entity reference elements up a level.
/** * Render API callback that moves entity reference elements up a level. * * The elements (i.e. 'handler_settings') are moved for easier processing by * the validation and submission handlers. * * @see _entity_reference_field_settings_process() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:731
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::settingsAjaxSubmit($form, Drupal\Core\Form\FormStateInterface $form_state) Submit handler for the non-JS case.
/** * Submit handler for the non-JS case. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:743
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getPreconfiguredOptions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:752
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:780
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- abstract public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array Returns the referenceable entity types and bundles.
/** * Returns the referenceable entity types and bundles. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition for which to retrieve the referenceable entity * types and bundles. * * @return array * An array of referenceable bundles where the array is keyed by the entity * type ID, with values an array of bundle names. (It is a single-value * array with the entity type ID if the entity type does not implement * bundles.) */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php:28
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 1 => Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11824 (9)
- Properties (9)
- Methods (54)
- Static methods (36)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- handler => string (14) "default:domain"
- handler_settings => array (2) Depth Limit
- target_type => string (6) "domain"
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2971 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "4a32f9cd-eb0d-462c-b416-e505e325933d"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (1)
- domain_access => array (1) Depth Limit
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2) Depth Limit
- module => array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (13) "Domain Access"
- protected description -> string (47) "Select the affiliate domain(s) for this content"
- protected settings -> array (2)
- handler => string (14) "default:domain"
- handler_settings => array (2) Depth Limit
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> null
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11697 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1) Depth Limit
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "94b14b82-8e49-4839-829b-141b474503f4"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (1) Depth Limit
- protected trustedData -> boolean false
- protected dependencies -> array (2) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (24) "node.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected entity_type -> string (4) "node"
- protected type -> string (16) "entity_reference"
- protected module -> string (4) "core"
- protected settings -> array (1) Depth Limit
- protected cardinality -> integer -1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (2) Depth Limit
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 Recursion
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 1
- protected parent -> Drupal\Core\Field\EntityReferenceFieldItemList#11812 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (1)
- target_id => string (17) "cbit_bitanube_com"
- protected properties -> array (1)
- entity => Drupal\Core\Entity\Plugin\DataType\EntityReference#11825 (9)
- Properties (9)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataReferenceDefinition#11817 (3)
- Properties (3)
- Methods (36)
- Static methods (4)
- protected definition -> array (6) Depth Limit
- protected typedDataManager -> null
- protected targetDefinition -> Drupal\Core\Entity\TypedData\EntityDataDefinition#11820 Depth Limit
- public getTargetDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:48
- public setTargetDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the definition of the referenced data.
/** * Sets the definition of the referenced data. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The target definition to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:60
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataReferenceDefinition::create($target_data_type): static Creates a new data reference definition.
/** * Creates a new data reference definition. * * @param string $target_data_type * The data type of the referenced data. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:28
- public static Drupal\Core\TypedData\DataReferenceDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:37
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (6) "entity"
- protected parent -> Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11824 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected target -> uninitialized
- protected id -> string (17) "cbit_bitanube_com"
- public getTargetDefinition(): \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface Gets the definition of the referenced entity.
/** * Gets the definition of the referenced entity. * * @return \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface * The reference target's definition. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:51
- public isTargetNew(): bool Checks whether the target entity has not been saved yet.
/** * Checks whether the target entity has not been saved yet. * * @return bool * TRUE if the entity is new, FALSE otherwise. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:61
- public getTarget() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:69
- public getTargetIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:83
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:95
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:122
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataReferenceBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceBase.php:36
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:212
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:227
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:271
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:285
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:301
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:315
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:414
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:441
- public hasNewEntity(): bool Determines whether the item holds an unsaved entity.
/** * Determines whether the item holds an unsaved entity. * * This is notably used for "autocreate" widgets, and more generally to * support referencing freshly created entities (they will get saved * automatically as the hosting entity gets saved). * * @return bool * TRUE if the item holds an unsaved entity. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:532
- public getPossibleValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:648
- public getPossibleOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:655
- public getSettableValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:662
- public getSettableOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:672
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php:20
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:49
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:58
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:68
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:116
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:131
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:158
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:165
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:333
- protected static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getRandomBundle(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $selection_settings): string|null Gets a bundle for a given entity type and selection options.
/** * Gets a bundle for a given entity type and selection options. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param array $selection_settings * An array of selection settings. * * @return string|null * Either the bundle string, or NULL if there is no bundle. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:399
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsFormValidate(array $form, Drupal\Core\Form\FormStateInterface $form_state) Form element validation handler; Invokes selection plugin's validation.
/** * Form element validation handler; Invokes selection plugin's validation. * * @param array $form * The form where the settings form is being included in. * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:516
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:539
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:579
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:589
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcess($form, Drupal\Core\Form\FormStateInterface $form_state) Render API callback: Processes the field settings form.
/** * Render API callback: Processes the field settings form. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:698
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcessElement(&$element, $main_form) Adds the field settings to AJAX form elements.
/** * Adds the field settings to AJAX form elements. * * @see static::fieldSettingsAjaxProcess() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:708
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::formProcessMergeParent($element) Render API callback that moves entity reference elements up a level.
/** * Render API callback that moves entity reference elements up a level. * * The elements (i.e. 'handler_settings') are moved for easier processing by * the validation and submission handlers. * * @see _entity_reference_field_settings_process() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:731
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::settingsAjaxSubmit($form, Drupal\Core\Form\FormStateInterface $form_state) Submit handler for the non-JS case.
/** * Submit handler for the non-JS case. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:743
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getPreconfiguredOptions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:752
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:780
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- abstract public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array Returns the referenceable entity types and bundles.
/** * Returns the referenceable entity types and bundles. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition for which to retrieve the referenceable entity * types and bundles. * * @return array * An array of referenceable bundles where the array is keyed by the entity * type ID, with values an array of bundle names. (It is a single-value * array with the entity type ID if the entity type does not implement * bundles.) */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php:28
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 2 => Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11826 (9)
- Properties (9)
- Methods (54)
- Static methods (36)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- handler => string (14) "default:domain"
- handler_settings => array (2) Depth Limit
- target_type => string (6) "domain"
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2971 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "4a32f9cd-eb0d-462c-b416-e505e325933d"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (1)
- domain_access => array (1) Depth Limit
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2) Depth Limit
- module => array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (13) "Domain Access"
- protected description -> string (47) "Select the affiliate domain(s) for this content"
- protected settings -> array (2)
- handler => string (14) "default:domain"
- handler_settings => array (2) Depth Limit
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> null
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11697 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1) Depth Limit
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "94b14b82-8e49-4839-829b-141b474503f4"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (1) Depth Limit
- protected trustedData -> boolean false
- protected dependencies -> array (2) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (24) "node.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected entity_type -> string (4) "node"
- protected type -> string (16) "entity_reference"
- protected module -> string (4) "core"
- protected settings -> array (1) Depth Limit
- protected cardinality -> integer -1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (2) Depth Limit
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 Recursion
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 2
- protected parent -> Drupal\Core\Field\EntityReferenceFieldItemList#11812 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (1)
- target_id => string (21) "creative_bitanube_com"
- protected properties -> array (1)
- entity => Drupal\Core\Entity\Plugin\DataType\EntityReference#11827 (9)
- Properties (9)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataReferenceDefinition#11817 (3)
- Properties (3)
- Methods (36)
- Static methods (4)
- protected definition -> array (6) Depth Limit
- protected typedDataManager -> null
- protected targetDefinition -> Drupal\Core\Entity\TypedData\EntityDataDefinition#11820 Depth Limit
- public getTargetDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:48
- public setTargetDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the definition of the referenced data.
/** * Sets the definition of the referenced data. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The target definition to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:60
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataReferenceDefinition::create($target_data_type): static Creates a new data reference definition.
/** * Creates a new data reference definition. * * @param string $target_data_type * The data type of the referenced data. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:28
- public static Drupal\Core\TypedData\DataReferenceDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:37
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (6) "entity"
- protected parent -> Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11826 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected target -> uninitialized
- protected id -> string (21) "creative_bitanube_com"
- public getTargetDefinition(): \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface Gets the definition of the referenced entity.
/** * Gets the definition of the referenced entity. * * @return \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface * The reference target's definition. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:51
- public isTargetNew(): bool Checks whether the target entity has not been saved yet.
/** * Checks whether the target entity has not been saved yet. * * @return bool * TRUE if the entity is new, FALSE otherwise. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:61
- public getTarget() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:69
- public getTargetIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:83
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:95
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:122
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataReferenceBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceBase.php:36
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:212
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:227
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:271
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:285
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:301
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:315
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:414
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:441
- public hasNewEntity(): bool Determines whether the item holds an unsaved entity.
/** * Determines whether the item holds an unsaved entity. * * This is notably used for "autocreate" widgets, and more generally to * support referencing freshly created entities (they will get saved * automatically as the hosting entity gets saved). * * @return bool * TRUE if the item holds an unsaved entity. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:532
- public getPossibleValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:648
- public getPossibleOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:655
- public getSettableValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:662
- public getSettableOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:672
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php:20
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:49
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:58
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:68
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:116
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:131
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:158
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:165
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:333
- protected static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getRandomBundle(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $selection_settings): string|null Gets a bundle for a given entity type and selection options.
/** * Gets a bundle for a given entity type and selection options. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param array $selection_settings * An array of selection settings. * * @return string|null * Either the bundle string, or NULL if there is no bundle. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:399
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsFormValidate(array $form, Drupal\Core\Form\FormStateInterface $form_state) Form element validation handler; Invokes selection plugin's validation.
/** * Form element validation handler; Invokes selection plugin's validation. * * @param array $form * The form where the settings form is being included in. * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:516
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:539
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:579
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:589
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcess($form, Drupal\Core\Form\FormStateInterface $form_state) Render API callback: Processes the field settings form.
/** * Render API callback: Processes the field settings form. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:698
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcessElement(&$element, $main_form) Adds the field settings to AJAX form elements.
/** * Adds the field settings to AJAX form elements. * * @see static::fieldSettingsAjaxProcess() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:708
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::formProcessMergeParent($element) Render API callback that moves entity reference elements up a level.
/** * Render API callback that moves entity reference elements up a level. * * The elements (i.e. 'handler_settings') are moved for easier processing by * the validation and submission handlers. * * @see _entity_reference_field_settings_process() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:731
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::settingsAjaxSubmit($form, Drupal\Core\Form\FormStateInterface $form_state) Submit handler for the non-JS case.
/** * Submit handler for the non-JS case. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:743
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getPreconfiguredOptions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:752
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:780
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- abstract public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array Returns the referenceable entity types and bundles.
/** * Returns the referenceable entity types and bundles. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition for which to retrieve the referenceable entity * types and bundles. * * @return array * An array of referenceable bundles where the array is keyed by the entity * type ID, with values an array of bundle names. (It is a single-value * array with the entity type ID if the entity type does not implement * bundles.) */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php:28
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- 3 => Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11828 (9)
- Properties (9)
- Methods (54)
- Static methods (36)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- handler => string (14) "default:domain"
- handler_settings => array (2) Depth Limit
- target_type => string (6) "domain"
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2971 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "4a32f9cd-eb0d-462c-b416-e505e325933d"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (1)
- domain_access => array (1) Depth Limit
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2) Depth Limit
- module => array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (13) "Domain Access"
- protected description -> string (47) "Select the affiliate domain(s) for this content"
- protected settings -> array (2)
- handler => string (14) "default:domain"
- handler_settings => array (2) Depth Limit
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> null
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11697 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1) Depth Limit
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "94b14b82-8e49-4839-829b-141b474503f4"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (1) Depth Limit
- protected trustedData -> boolean false
- protected dependencies -> array (2) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (24) "node.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected entity_type -> string (4) "node"
- protected type -> string (16) "entity_reference"
- protected module -> string (4) "core"
- protected settings -> array (1) Depth Limit
- protected cardinality -> integer -1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (2) Depth Limit
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11813 Recursion
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 3
- protected parent -> Drupal\Core\Field\EntityReferenceFieldItemList#11812 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (1)
- target_id => string (21) "demo1_zausen_software"
- protected properties -> array (1)
- entity => Drupal\Core\Entity\Plugin\DataType\EntityReference#11829 (9)
- Properties (9)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataReferenceDefinition#11817 (3)
- Properties (3)
- Methods (36)
- Static methods (4)
- protected definition -> array (6) Depth Limit
- protected typedDataManager -> null
- protected targetDefinition -> Drupal\Core\Entity\TypedData\EntityDataDefinition#11820 Depth Limit
- public getTargetDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:48
- public setTargetDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the definition of the referenced data.
/** * Sets the definition of the referenced data. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The target definition to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:60
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataReferenceDefinition::create($target_data_type): static Creates a new data reference definition.
/** * Creates a new data reference definition. * * @param string $target_data_type * The data type of the referenced data. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:28
- public static Drupal\Core\TypedData\DataReferenceDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php:37
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (6) "entity"
- protected parent -> Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem#11828 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected target -> uninitialized
- protected id -> string (21) "demo1_zausen_software"
- public getTargetDefinition(): \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface Gets the definition of the referenced entity.
/** * Gets the definition of the referenced entity. * * @return \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface * The reference target's definition. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:51
- public isTargetNew(): bool Checks whether the target entity has not been saved yet.
/** * Checks whether the target entity has not been saved yet. * * @return bool * TRUE if the entity is new, FALSE otherwise. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:61
- public getTarget() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:69
- public getTargetIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:83
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:95
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php:122
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataReferenceBase Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataReferenceBase.php:36
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:212
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:227
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:271
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:285
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:301
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:315
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:414
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:441
- public hasNewEntity(): bool Determines whether the item holds an unsaved entity.
/** * Determines whether the item holds an unsaved entity. * * This is notably used for "autocreate" widgets, and more generally to * support referencing freshly created entities (they will get saved * automatically as the hosting entity gets saved). * * @return bool * TRUE if the item holds an unsaved entity. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:532
- public getPossibleValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:648
- public getPossibleOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:655
- public getSettableValues(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:662
- public getSettableOptions(?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:672
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php:20
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:246
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:49
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:58
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:68
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:116
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:131
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:158
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:165
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:333
- protected static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getRandomBundle(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $selection_settings): string|null Gets a bundle for a given entity type and selection options.
/** * Gets a bundle for a given entity type and selection options. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param array $selection_settings * An array of selection settings. * * @return string|null * Either the bundle string, or NULL if there is no bundle. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:399
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsFormValidate(array $form, Drupal\Core\Form\FormStateInterface $form_state) Form element validation handler; Invokes selection plugin's validation.
/** * Form element validation handler; Invokes selection plugin's validation. * * @param array $form * The form where the settings form is being included in. * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:516
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:539
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:579
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:589
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcess($form, Drupal\Core\Form\FormStateInterface $form_state) Render API callback: Processes the field settings form.
/** * Render API callback: Processes the field settings form. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:698
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::fieldSettingsAjaxProcessElement(&$element, $main_form) Adds the field settings to AJAX form elements.
/** * Adds the field settings to AJAX form elements. * * @see static::fieldSettingsAjaxProcess() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:708
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::formProcessMergeParent($element) Render API callback that moves entity reference elements up a level.
/** * Render API callback that moves entity reference elements up a level. * * The elements (i.e. 'handler_settings') are moved for easier processing by * the validation and submission handlers. * * @see _entity_reference_field_settings_process() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:731
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::settingsAjaxSubmit($form, Drupal\Core\Form\FormStateInterface $form_state) Submit handler for the non-JS case.
/** * Submit handler for the non-JS case. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:743
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getPreconfiguredOptions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:752
- public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php:780
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- abstract public static Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface::getReferenceableBundles(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array Returns the referenceable entity types and bundles.
/** * Returns the referenceable entity types and bundles. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition for which to retrieve the referenceable entity * types and bundles. * * @return array * An array of referenceable bundles where the array is keyed by the entity * type ID, with values an array of bundle names. (It is a single-value * array with the entity type ID if the entity type does not implement * bundles.) */ Inherited from Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemInterface.php:28
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- protected langcode -> string (2) "es"
- public getConstraints() {@inheritdoc}$0->field_domain_access->getConstraints()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:16
- public referencedEntities() {@inheritdoc}$0->field_domain_access->referencedEntities()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:26
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_domain_access->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:107
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->field_domain_access->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->field_domain_access->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->field_domain_access->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->field_domain_access->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->field_domain_access->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->field_domain_access->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->field_domain_access->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->field_domain_access->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->field_domain_access->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->field_domain_access->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->field_domain_access->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->field_domain_access->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->field_domain_access->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->field_domain_access->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->field_domain_access->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->field_domain_access->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->field_domain_access->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_domain_access->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_domain_access->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->field_domain_access->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->field_domain_access->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->field_domain_access->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->field_domain_access->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->field_domain_access->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->field_domain_access->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->field_domain_access->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->field_domain_access->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->field_domain_access->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->field_domain_access->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->field_domain_access->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->field_domain_access->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->field_domain_access->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->field_domain_access->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->field_domain_access->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->field_domain_access->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->field_domain_access->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->field_domain_access->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->field_domain_access->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->field_domain_access
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->field_domain_access->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\EntityReferenceFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->field_domain_access->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->field_domain_access->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->field_domain_access->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->field_domain_access->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->field_domain_access->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->field_domain_access->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->field_domain_access->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->field_domain_access->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->field_domain_access->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->field_domain_access->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->field_domain_access->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->field_domain_access->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getConstraints() {@inheritdoc}
- public static Drupal\Core\Field\EntityReferenceFieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:62
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->field_domain_access, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- field_domain_all_affiliates -> string (1) "0"$0->field_domain_all_affiliates->value
- field_imagen -> string (3) "326"$0->field_imagen->target_id
- field_layout -> string (7) "default"$0->field_layout->value
- field_menu_contextual -> Drupal\Core\Field\EntityReferenceFieldItemList#11959 (0)$0->field_menu_contextual
- No values
- Properties (9)
- Methods (70)
- Static methods (3)
- Iterator
- No values uninitialized
- protected definition -> Drupal\field\Entity\FieldConfig#2975 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (39) "node.pagina_libre.field_menu_contextual"
- protected status -> boolean true
- protected uuid -> string (36) "dd06008b-fb16-46dc-aded-f72cdae7f83f"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (2)
- 0 => string (40) "field.storage.node.field_menu_contextual"
- 1 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (39) "node.pagina_libre.field_menu_contextual"
- protected field_name -> string (21) "field_menu_contextual"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (16) "Menú contextual"
- protected description -> UTF-8 string (323) "Indica un menú adicional que se mostrará solo en la página actual. <br> Util...
Indica un menú adicional que se mostrará solo en la página actual. <br> Utilizado para enlaces de interés relacionados con el contenido de la página o para guiar al usuario a los siguientes contenidos.<br> Puedes añadir o gestionar menús a través de este enlace: <a href="/admin/structure/menu">gestión menú</a>
- protected settings -> array (2)
- handler => string (12) "default:menu"
- handler_settings => array (2)
- target_bundles => null
- auto_create => boolean false
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (21) "field_menu_contextual"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- public getConstraints() {@inheritdoc}$0->field_menu_contextual->getConstraints()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:16
- public referencedEntities() {@inheritdoc}$0->field_menu_contextual->referencedEntities()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:26
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_menu_contextual->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:107
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->field_menu_contextual->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->field_menu_contextual->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->field_menu_contextual->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->field_menu_contextual->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->field_menu_contextual->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->field_menu_contextual->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->field_menu_contextual->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->field_menu_contextual->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->field_menu_contextual->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->field_menu_contextual->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->field_menu_contextual->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->field_menu_contextual->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->field_menu_contextual->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->field_menu_contextual->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->field_menu_contextual->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->field_menu_contextual->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->field_menu_contextual->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_menu_contextual->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_menu_contextual->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->field_menu_contextual->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->field_menu_contextual->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->field_menu_contextual->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->field_menu_contextual->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->field_menu_contextual->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->field_menu_contextual->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->field_menu_contextual->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->field_menu_contextual->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->field_menu_contextual->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->field_menu_contextual->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->field_menu_contextual->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->field_menu_contextual->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->field_menu_contextual->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->field_menu_contextual->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->field_menu_contextual->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->field_menu_contextual->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->field_menu_contextual->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->field_menu_contextual->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->field_menu_contextual->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->field_menu_contextual
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->field_menu_contextual->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\EntityReferenceFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->field_menu_contextual->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->field_menu_contextual->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->field_menu_contextual->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->field_menu_contextual->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->field_menu_contextual->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->field_menu_contextual->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->field_menu_contextual->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->field_menu_contextual->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->field_menu_contextual->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->field_menu_contextual->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->field_menu_contextual->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->field_menu_contextual->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getConstraints() {@inheritdoc}
- public static Drupal\Core\Field\EntityReferenceFieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:62
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->field_menu_contextual, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- field_metatags -> Drupal\metatag\Plugin\Field\FieldType\MetatagFieldItemList#11961 (0)$0->field_metatags
- No values
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- No values uninitialized
- protected definition -> Drupal\field\Entity\FieldConfig#2976 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (32) "node.pagina_libre.field_metatags"
- protected status -> boolean true
- protected uuid -> string (36) "8b758036-a77d-45e3-b023-c831354128f9"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2)
- 0 => string (33) "field.storage.node.field_metatags"
- 1 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (7) "metatag"
- protected isSyncing -> boolean false
- protected id -> string (32) "node.pagina_libre.field_metatags"
- protected field_name -> string (14) "field_metatags"
- protected field_type -> string (7) "metatag"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (8) "Metatags"
- protected description -> string (0) ""
- protected settings -> array (0)
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (14) "field_metatags"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->field_metatags->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/modules/contrib/metatag/src/Plugin/Field/FieldType/MetatagFieldItemList.php:16
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->field_metatags->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->field_metatags->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->field_metatags->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->field_metatags->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->field_metatags->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->field_metatags->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->field_metatags->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->field_metatags->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->field_metatags->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->field_metatags->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->field_metatags->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->field_metatags->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->field_metatags->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->field_metatags->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->field_metatags->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->field_metatags->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->field_metatags->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->field_metatags->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_metatags->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_metatags->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_metatags->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->field_metatags->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public getValue() {@inheritdoc}$0->field_metatags->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->field_metatags->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->field_metatags->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->field_metatags->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->field_metatags->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->field_metatags->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->field_metatags->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->field_metatags->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->field_metatags->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->field_metatags->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->field_metatags->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->field_metatags->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->field_metatags->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->field_metatags->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->field_metatags->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->field_metatags->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->field_metatags->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->field_metatags
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->field_metatags->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\metatag\Plugin\Field\FieldType\MetatagFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->field_metatags->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->field_metatags->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->field_metatags->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->field_metatags->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->field_metatags->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->field_metatags->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->field_metatags->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->field_metatags->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->field_metatags->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->field_metatags->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->field_metatags->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->field_metatags->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->field_metatags, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- field_sigue_leyendo -> Drupal\Core\Field\EntityReferenceFieldItemList#11963 (0)$0->field_sigue_leyendo
- No values
- Properties (9)
- Methods (70)
- Static methods (3)
- Iterator
- No values uninitialized
- protected definition -> Drupal\field\Entity\FieldConfig#2977 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_sigue_leyendo"
- protected status -> boolean true
- protected uuid -> string (36) "f7035a48-8218-4214-a489-49b86ead9ee0"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3)
- 0 => string (38) "field.storage.node.field_sigue_leyendo"
- 1 => string (22) "node.type.pagina_libre"
- 2 => string (23) "node.type.sigue_leyendo"
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_sigue_leyendo"
- protected field_name -> string (19) "field_sigue_leyendo"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (13) "Sigue leyendo"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (12) "default:node"
- handler_settings => array (4)
- target_bundles => array (1)
- sigue_leyendo => string (13) "sigue_leyendo"
- sort => array (2)
- field => string (5) "_none"
- direction => string (3) "ASC"
- auto_create => boolean false
- auto_create_bundle => string (0) ""
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (19) "field_sigue_leyendo"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- public getConstraints() {@inheritdoc}$0->field_sigue_leyendo->getConstraints()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:16
- public referencedEntities() {@inheritdoc}$0->field_sigue_leyendo->referencedEntities()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:26
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_sigue_leyendo->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:107
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->field_sigue_leyendo->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->field_sigue_leyendo->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->field_sigue_leyendo->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->field_sigue_leyendo->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->field_sigue_leyendo->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->field_sigue_leyendo->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->field_sigue_leyendo->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->field_sigue_leyendo->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->field_sigue_leyendo->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->field_sigue_leyendo->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->field_sigue_leyendo->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->field_sigue_leyendo->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->field_sigue_leyendo->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->field_sigue_leyendo->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->field_sigue_leyendo->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->field_sigue_leyendo->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->field_sigue_leyendo->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_sigue_leyendo->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_sigue_leyendo->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->field_sigue_leyendo->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->field_sigue_leyendo->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->field_sigue_leyendo->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->field_sigue_leyendo->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->field_sigue_leyendo->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->field_sigue_leyendo->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->field_sigue_leyendo->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->field_sigue_leyendo->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->field_sigue_leyendo->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->field_sigue_leyendo->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->field_sigue_leyendo->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->field_sigue_leyendo->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->field_sigue_leyendo->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->field_sigue_leyendo->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->field_sigue_leyendo->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->field_sigue_leyendo->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->field_sigue_leyendo->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->field_sigue_leyendo->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->field_sigue_leyendo->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->field_sigue_leyendo
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->field_sigue_leyendo->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\EntityReferenceFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->field_sigue_leyendo->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->field_sigue_leyendo->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->field_sigue_leyendo->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->field_sigue_leyendo->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->field_sigue_leyendo->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->field_sigue_leyendo->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->field_sigue_leyendo->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->field_sigue_leyendo->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->field_sigue_leyendo->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->field_sigue_leyendo->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->field_sigue_leyendo->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->field_sigue_leyendo->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getConstraints() {@inheritdoc}
- public static Drupal\Core\Field\EntityReferenceFieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:62
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->field_sigue_leyendo, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- field_slider -> Drupal\Core\Field\EntityReferenceFieldItemList#11965 (0)$0->field_slider
- No values
- Properties (9)
- Methods (70)
- Static methods (3)
- Iterator
- No values uninitialized
- protected definition -> Drupal\field\Entity\FieldConfig#2978 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (30) "node.pagina_libre.field_slider"
- protected status -> boolean true
- protected uuid -> string (36) "32bef2c1-8cdd-4cfc-bc57-6d70d01c654a"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3)
- 0 => string (31) "field.storage.node.field_slider"
- 1 => string (22) "node.type.pagina_libre"
- 2 => string (16) "node.type.slider"
- protected isSyncing -> boolean false
- protected id -> string (30) "node.pagina_libre.field_slider"
- protected field_name -> string (12) "field_slider"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (6) "Slider"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (12) "default:node"
- handler_settings => array (4)
- target_bundles => array (1)
- slider => string (6) "slider"
- sort => array (2)
- field => string (5) "_none"
- direction => string (3) "ASC"
- auto_create => boolean false
- auto_create_bundle => string (0) ""
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (12) "field_slider"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- public getConstraints() {@inheritdoc}$0->field_slider->getConstraints()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:16
- public referencedEntities() {@inheritdoc}$0->field_slider->referencedEntities()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:26
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_slider->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\EntityReferenceFieldItemList Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:107
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->field_slider->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->field_slider->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->field_slider->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->field_slider->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->field_slider->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->field_slider->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->field_slider->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->field_slider->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->field_slider->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->field_slider->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->field_slider->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->field_slider->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->field_slider->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->field_slider->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->field_slider->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->field_slider->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->field_slider->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_slider->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_slider->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->field_slider->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->field_slider->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->field_slider->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->field_slider->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->field_slider->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->field_slider->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->field_slider->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->field_slider->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->field_slider->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->field_slider->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->field_slider->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->field_slider->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->field_slider->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->field_slider->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->field_slider->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->field_slider->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->field_slider->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->field_slider->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->field_slider->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->field_slider
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->field_slider->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\EntityReferenceFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->field_slider->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->field_slider->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->field_slider->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->field_slider->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->field_slider->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->field_slider->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->field_slider->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->field_slider->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->field_slider->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->field_slider->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->field_slider->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->field_slider->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getConstraints() {@inheritdoc}
- public static Drupal\Core\Field\EntityReferenceFieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php:62
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->field_slider, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- field_subtitulo -> Drupal\Core\Field\FieldItemList#11967 (0)$0->field_subtitulo
- No values
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- No values uninitialized
- protected definition -> Drupal\field\Entity\FieldConfig#2979 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (33) "node.pagina_libre.field_subtitulo"
- protected status -> boolean true
- protected uuid -> string (36) "9f76a129-9eaa-4ce4-b4a8-1d6a6aa34d18"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (2)
- 0 => string (34) "field.storage.node.field_subtitulo"
- 1 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (33) "node.pagina_libre.field_subtitulo"
- protected field_name -> string (15) "field_subtitulo"
- protected field_type -> string (6) "string"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (10) "Subtítulo"
- protected description -> UTF-8 string (87) "Etiqueta <b>h3</b><br> <b>Recomendación de caracteres</b>: Entre 60 y 120 ca...
Etiqueta <b>h3</b><br> <b>Recomendación de caracteres</b>: Entre 60 y 120 caracteres.
- protected settings -> array (0)
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (15) "field_subtitulo"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (0)
- protected langcode -> string (2) "es"
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->field_subtitulo->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->field_subtitulo->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->field_subtitulo->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->field_subtitulo->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->field_subtitulo->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->field_subtitulo->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->field_subtitulo->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->field_subtitulo->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->field_subtitulo->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->field_subtitulo->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->field_subtitulo->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->field_subtitulo->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->field_subtitulo->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->field_subtitulo->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->field_subtitulo->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->field_subtitulo->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->field_subtitulo->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->field_subtitulo->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_subtitulo->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_subtitulo->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:308
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_subtitulo->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->field_subtitulo->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->field_subtitulo->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->field_subtitulo->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->field_subtitulo->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->field_subtitulo->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->field_subtitulo->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->field_subtitulo->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->field_subtitulo->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->field_subtitulo->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->field_subtitulo->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->field_subtitulo->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->field_subtitulo->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->field_subtitulo->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->field_subtitulo->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->field_subtitulo->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->field_subtitulo->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->field_subtitulo->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->field_subtitulo->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->field_subtitulo->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->field_subtitulo
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->field_subtitulo->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\Core\Field\FieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->field_subtitulo->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->field_subtitulo->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->field_subtitulo->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->field_subtitulo->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->field_subtitulo->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->field_subtitulo->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->field_subtitulo->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->field_subtitulo->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->field_subtitulo->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->field_subtitulo->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->field_subtitulo->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->field_subtitulo->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->field_subtitulo, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- field_titulo -> Drupal\text\Plugin\Field\FieldType\TextFieldItemList#11969 (2)$0->field_titulo
- Field properties (2)
- Properties (9)
- Methods (69)
- Static methods (2)
- Iterator
- value -> string (40) "<p>Descubre todos nuestros servicios</p>"$0->field_titulo->value
- format -> string (17) "html_para_titulos"$0->field_titulo->format
- value -> string (40) "<p>Descubre todos nuestros servicios</p>"
- protected definition -> Drupal\field\Entity\FieldConfig#2980 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (30) "node.pagina_libre.field_titulo"
- protected status -> boolean true
- protected uuid -> string (36) "f41a733a-3a9e-4aa5-93f9-cc4640d43f70"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (3)
- 0 => string (31) "field.storage.node.field_titulo"
- 1 => string (31) "filter.format.html_para_titulos"
- 2 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (4) "text"
- protected isSyncing -> boolean false
- protected id -> string (30) "node.pagina_libre.field_titulo"
- protected field_name -> string (12) "field_titulo"
- protected field_type -> string (4) "text"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (7) "Título"
- protected description -> UTF-8 string (86) "Etiqueta <b>h1</b><br> <b>Recomendación de caracteres</b>: Entre 20 y 60 car...
Etiqueta <b>h1</b><br> <b>Recomendación de caracteres</b>: Entre 20 y 60 caracteres.
- protected settings -> array (1)
- allowed_formats => array (1)
- 0 => string (17) "html_para_titulos"
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11770 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (17) "node.field_titulo"
- protected status -> boolean true
- protected uuid -> string (36) "10df9d1b-7f04-4814-aa2e-f9b54d17f0d6"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- module => array (2)
- 0 => string (4) "node"
- 1 => string (4) "text"
- protected isSyncing -> boolean false
- protected id -> string (17) "node.field_titulo"
- protected field_name -> string (12) "field_titulo"
- protected entity_type -> string (4) "node"
- protected type -> string (4) "text"
- protected module -> string (4) "text"
- protected settings -> array (1)
- max_length => integer 255
- protected cardinality -> integer 1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (3)
- value => Drupal\Core\TypedData\DataDefinition#11972 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (3)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11973 Depth Limit
- required => boolean true
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- format => Drupal\Core\TypedData\DataDefinition#11974 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (3)
- type => string (13) "filter_format"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11975 Depth Limit
- settings => array (1) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- processed => Drupal\Core\TypedData\DataDefinition#11976 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (7)
- type => string (6) "string"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#11977 Depth Limit
- description => Drupal\Core\StringTranslation\TranslatableMarkup#11978 Depth Limit
- computed => boolean true
- class => string (26) "\Drupal\text\TextProcessed"
- settings => array (1) Depth Limit
- internal => boolean false
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11970 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (15) "field_item:text"
- settings => array (2)
- allowed_formats => array (1)
- 0 => string (17) "html_para_titulos"
- max_length => integer 255
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2980 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected name -> string (12) "field_titulo"
- protected parent -> Drupal\Core\Entity\Plugin\DataType\EntityAdapter#11208 Blacklisted
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected list -> array (1)
- 0 => Drupal\text\Plugin\Field\FieldType\TextItem#11981 (9)
- Properties (9)
- Methods (49)
- Static methods (23)
- Iterator
- protected definition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11970 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (15) "field_item:text"
- settings => array (2)
- allowed_formats => array (1) Depth Limit
- max_length => integer 255
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected fieldDefinition -> Drupal\field\Entity\FieldConfig#2980 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (30) "node.pagina_libre.field_titulo"
- protected status -> boolean true
- protected uuid -> string (36) "f41a733a-3a9e-4aa5-93f9-cc4640d43f70"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (3) Depth Limit
- module => array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (30) "node.pagina_libre.field_titulo"
- protected field_name -> string (12) "field_titulo"
- protected field_type -> string (4) "text"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (7) "Título"
- protected description -> UTF-8 string (86) "Etiqueta <b>h1</b><br> <b>Recomendación de caracteres</b>: Entre 20 y 60 car...
Etiqueta <b>h1</b><br> <b>Recomendación de caracteres</b>: Entre 20 y 60 caracteres.
- protected settings -> array (1)
- allowed_formats => array (1) Depth Limit
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> Drupal\field\Entity\FieldStorageConfig#11770 (34)
- Properties (34)
- Methods (125)
- Static methods (15)
- Static properties (1)
- Class constants (2)
- protected entityTypeId -> string (20) "field_storage_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1) Depth Limit
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (17) "node.field_titulo"
- protected status -> boolean true
- protected uuid -> string (36) "10df9d1b-7f04-4814-aa2e-f9b54d17f0d6"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1) Depth Limit
- protected isSyncing -> boolean false
- protected id -> string (17) "node.field_titulo"
- protected field_name -> string (12) "field_titulo"
- protected entity_type -> string (4) "node"
- protected type -> string (4) "text"
- protected module -> string (4) "text"
- protected settings -> array (1) Depth Limit
- protected cardinality -> integer 1
- protected translatable -> boolean true
- protected locked -> boolean false
- protected persist_with_no_fields -> boolean false
- public custom_storage -> boolean false
- protected indexes -> array (0)
- protected deleted -> boolean false
- protected schema -> null
- protected propertyDefinitions -> array (3) Depth Limit
- public __construct(array $values, $entity_type = 'field_storage_config') Constructs a FieldStorageConfig object.
/** * Constructs a FieldStorageConfig object. * * In most cases, Field entities are created via * FieldStorageConfig::create($values)), where $values is the same parameter * as in this constructor. * * @param array $values * An array of field properties, keyed by property name. Most array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. Some array elements * have special meanings and a few are required. Special elements are: * - name: required. As a temporary Backwards Compatibility layer right now, * a 'field_name' property can be accepted in place of 'id'. * - entity_type: required. * - type: required. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_storage_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:265
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:286
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:293
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:320
- protected preSaveNew(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving a new field definition.
/** * Prepares saving a new field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:350
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:376
- protected preSaveUpdated(Drupal\Core\Entity\EntityStorageInterface $storage) Prepares saving an updated field definition.
/** * Prepares saving an updated field definition. * * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:397
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:421
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:479
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:505
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:512
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:519
- public getBundles() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:527
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:540
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:547
- public getTypeProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:554
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:561
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:568
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:582
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:601
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:609
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:617
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:624
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:632
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:640
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:647
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:654
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:661
- public setCardinality($cardinality) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:678
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:686
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:713
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:721
- public setLocked($locked) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:728
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:736
- public hasData(): bool Determines whether a field has any data.
/** * Determines whether a field has any data. * * @return bool * TRUE if the field has data for any entity; FALSE otherwise. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:746
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:758
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:769
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:776
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:783
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:798
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:809
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:816
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:824
- protected getFieldItemClass() Helper to retrieve the field item class.
/** * Helper to retrieve the field item class. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:831
- public isDeletable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:856
- public getIndexes() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:866
- public setIndexes(array $indexes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:873
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:478
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldStorageConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_storages) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:435
- public static Drupal\field\Entity\FieldStorageConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:464
- public static Drupal\field\Entity\FieldStorageConfig::loadByName($entity_type_id, $field_name): \Drupal\field\FieldStorageConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldStorageConfigInterface|null * The field config entity if one exists for the provided field name, * otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldStorageConfig.php:849
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected static Drupal\field\Entity\FieldStorageConfig::$inDeletion :: boolean false
- public const Drupal\field\Entity\FieldStorageConfig::NAME_MAX_LENGTH :: integer 32
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#11970 Recursion
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> integer 0
- protected parent -> Drupal\text\Plugin\Field\FieldType\TextFieldItemList#11969 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected values -> array (2)
- value => string (40) "<p>Descubre todos nuestros servicios</p>"
- format => string (17) "html_para_titulos"
- protected properties -> array (1)
- processed => Drupal\text\TextProcessed#11982 (8)
- Properties (8)
- Methods (28)
- Static methods (1)
- protected definition -> Drupal\Core\TypedData\DataDefinition#11976 (2)
- Properties (2)
- Methods (34)
- Static methods (2)
- protected definition -> array (7) Depth Limit
- protected typedDataManager -> null
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected name -> string (9) "processed"
- protected parent -> Drupal\text\Plugin\Field\FieldType\TextItem#11981 Recursion
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected stringTranslation -> null
- protected typedDataManager -> Drupal\Core\TypedData\TypedDataManager#1756 Blacklisted
- protected processed -> null
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:31
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:43
- public setValue($value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:73
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:84
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:92
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:100
- protected getRenderer(): \Drupal\Core\Render\RendererInterface Returns the renderer service.
/** * Returns the renderer service. * * @return \Drupal\Core\Render\RendererInterface * The renderer service. */ Defined in <drupal>/core/modules/text/src/TextProcessed.php:111
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:112
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:119
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:138
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItem.php:62
- public storageSettingsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state, $has_data) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItem.php:87
- public fieldSettingsForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\text\Plugin\Field\FieldType\TextItemBase Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:27
- public applyDefaultValue($notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\text\Plugin\Field\FieldType\TextItemBase Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:99
- public isEmpty() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\text\Plugin\Field\FieldType\TextItemBase Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:108
- public onChange($property_name, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\text\Plugin\Field\FieldType\TextItemBase Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:116
- public __construct(Drupal\Core\TypedData\ComplexDataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:60
- public getEntity() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:74
- public getLangcode() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:81
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:88
- protected getSettings(): array Returns the array of field settings.
/** * Returns the array of field settings. * * @return array * The array of settings. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:98
- protected getSetting($setting_name): mixed Returns the value of a field setting.
/** * Returns the value of a field setting. * * @param string $setting_name * The setting name. * * @return mixed * The setting value. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:111
- public setValue($values, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:118
- protected writePropertyValue($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} * * Different to the parent Map class, we avoid creating property objects as * far as possible in order to optimize performance. Thus we just update * $this->values if no property object has been created yet. */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:135
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:150
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:164
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:176
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:186
- public view($display_options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:200
- public preSave() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:208
- public postSave($update) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:213
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:218
- public deleteRevision() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldItemBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:228
- public getValue() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:58
- public getString() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:106
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:118
- public set($property_name, $value, $notify = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:133
- public getProperties($include_computed = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:165
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:178
- public getIterator(): ArrayIterator Retrieves the iterator for the object.
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\TypedData\TypedDataInterface> * The iterator. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:192
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\Map Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php:219
- public getPluginId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\text\Plugin\Field\FieldType\TextItem::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItem.php:32
- public static Drupal\text\Plugin\Field\FieldType\TextItem::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItem.php:41
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:20
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::validateAllowedFormats(array &$element, Drupal\Core\Form\FormStateInterface $form_state) Render API callback: Processes the allowed formats value.
/** * Render API callback: Processes the allowed formats value. * * Ensure the element's value is an indexed array of selected format IDs. * This function is assigned as an #element_validate callback. * * @see static::fieldSettingsForm() */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:51
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:59
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:76
- public static Drupal\text\Plugin\Field\FieldType\TextItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php:131
- public static Drupal\Core\Field\FieldItemBase::storageSettingsSummary(Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:39
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsSummary(Drupal\Core\Field\FieldDefinitionInterface $field_definition): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:46
- public static Drupal\Core\Field\FieldItemBase::mainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:53
- public static Drupal\Core\Field\FieldItemBase::storageSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:247
- public static Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:254
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:261
- public static Drupal\Core\Field\FieldItemBase::fieldSettingsFromConfigData(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:268
- public static Drupal\Core\Field\FieldItemBase::calculateStorageDependencies(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:282
- public static Drupal\Core\Field\FieldItemBase::onDependencyRemoval(Drupal\Core\Field\FieldDefinitionInterface $field_definition, array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:289
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- public static Drupal\Core\Field\FieldItemBase::defaultStorageSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:25
- abstract public static Drupal\Core\Field\FieldItemInterface::schema(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): array Returns the schema for the field.
/** * Returns the schema for the field. * * This method is static because the field schema information is needed on * creation of the field. FieldItemInterface objects instantiated at that * time are not reliable as field settings might be missing. * * Computed fields having no schema should return an empty array. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition. * * @return array * An empty array if there is no schema, or an associative array with the * following key/value pairs: * - columns: An array of Schema API column specifications, keyed by column * name. The columns need to be a subset of the properties defined in * propertyDefinitions(). The 'not null' property is ignored if present, * as it is determined automatically by the storage controller depending * on the table layout and the property definitions. It is recommended to * avoid having the column definitions depend on field settings when * possible. No assumptions should be made on how storage engines * internally use the original column name to structure their storage. * - unique keys: (optional) An array of Schema API unique key definitions. * Only columns that appear in the 'columns' array are allowed. * - indexes: (optional) An array of Schema API index definitions. Only * columns that appear in the 'columns' array are allowed. Those indexes * will be used as default indexes. Field definitions can specify * additional indexes or, at their own risk, modify the default indexes * specified by the field-type module. Some storage engines might not * support indexes. * - foreign keys: (optional) An array of Schema API foreign key * definitions. Note, however, that the field data is not necessarily * stored in SQL. Also, the possible usage is limited, as you cannot * specify another field as related, only existing SQL tables, * such as {taxonomy_term_data}. * * @throws \Drupal\Core\Field\FieldException * Throws an exception if the schema is invalid. */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:91
- public static Drupal\Core\Field\FieldItemBase::defaultFieldSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:32
- public static Drupal\Core\Field\FieldItemBase::generateSampleValue(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:223
- public static Drupal\Core\Field\FieldItemBase::calculateDependencies(Drupal\Core\Field\FieldDefinitionInterface $field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemBase.php:275
- abstract public static Drupal\Core\Field\FieldItemInterface::propertyDefinitions(Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition): \Drupal\Core\TypedData\DataDefinitionInterface[] Defines field item properties.
/** * Defines field item properties. * * Properties that are required to constitute a valid, non-empty item should * be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired(). * * @return \Drupal\Core\TypedData\DataDefinitionInterface[] * An array of property definitions of contained properties, keyed by * property name. * * @see \Drupal\Core\Field\BaseFieldDefinition */ Inherited from Drupal\Core\Field\FieldItemInterface Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemInterface.php:35
- Drupal\Core\Field\FieldItemInterface Iterator Contents uninitialized Blacklisted
- protected langcode -> string (2) "es"
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_titulo->defaultValuesFormValidate()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/text/src/Plugin/Field/FieldType/TextFieldItemList.php:16
- protected createItem($offset = 0, $value = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:44
- public getEntity() {@inheritdoc}$0->field_titulo->getEntity()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:51
- public setLangcode($langcode) {@inheritdoc}$0->field_titulo->setLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:60
- public getLangcode() {@inheritdoc}$0->field_titulo->getLangcode()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:67
- public getFieldDefinition() {@inheritdoc}$0->field_titulo->getFieldDefinition()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:74
- public getSettings() {@inheritdoc}$0->field_titulo->getSettings()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:81
- public getSetting($setting_name) {@inheritdoc}$0->field_titulo->getSetting()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:88
- public filterEmptyItems() {@inheritdoc}$0->field_titulo->filterEmptyItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:95
- public setValue($values, $notify = true) {@inheritdoc}$0->field_titulo->setValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:105
- public __get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:117
- public __set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:127
- public __isset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:137
- public __unset($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:147
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->field_titulo->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:156
- public defaultAccess($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null) {@inheritdoc}$0->field_titulo->defaultAccess()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:164
- public applyDefaultValue($notify = true) {@inheritdoc}$0->field_titulo->applyDefaultValue()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:172
- public preSave() {@inheritdoc}$0->field_titulo->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:191
- public postSave($update) {@inheritdoc}$0->field_titulo->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:201
- public delete() {@inheritdoc}$0->field_titulo->delete()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:209
- public deleteRevision() {@inheritdoc}$0->field_titulo->deleteRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:216
- protected delegateMethod($method): array Calls a method on each FieldItem.
/** * Calls a method on each FieldItem. * * Any argument passed will be forwarded to the invoked method. * * @param string $method * The name of the method to be invoked. * * @return array * An array of results keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:231
- public view($display_options = array()) {@inheritdoc}$0->field_titulo->view()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:245
- public generateSampleItems($count = 1) {@inheritdoc}$0->field_titulo->generateSampleItems()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:253
- public getConstraints() {@inheritdoc}$0->field_titulo->getConstraints()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:265
- public defaultValuesForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_titulo->defaultValuesForm()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:290
- public defaultValuesFormSubmit(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}$0->field_titulo->defaultValuesFormSubmit()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:327
- protected defaultValueWidget(Drupal\Core\Form\FormStateInterface $form_state): \Drupal\Core\Field\WidgetInterface|null Returns the widget object used in default value form.
/** * Returns the widget object used in default value form. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The form state of the (entire) configuration form. * * @return \Drupal\Core\Field\WidgetInterface|null * A Widget object or NULL if no widget is available. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:352
- public equals(Drupal\Core\Field\FieldItemListInterface $list_to_compare) {@inheritdoc}$0->field_titulo->equals()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:403
- public hasAffectingChanges(Drupal\Core\Field\FieldItemListInterface $original_items, $langcode) {@inheritdoc}$0->field_titulo->hasAffectingChanges()
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:449
- public getValue() {@inheritdoc}$0->field_titulo->getValue()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:45
- public getString() {@inheritdoc}$0->field_titulo->getString()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:94
- public get($index) {@inheritdoc}$0->field_titulo->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:106
- public set($index, $value) {@inheritdoc}$0->field_titulo->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:116
- public removeItem($index) {@inheritdoc}$0->field_titulo->removeItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:138
- protected rekey($from_index = 0) Renumbers the items in the list.
/** * Renumbers the items in the list. * * @param int $from_index * Optionally, the index at which to start the renumbering, if it is known * that items before that can safely be skipped (for example, when removing * an item at a given index). */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:158
- public first() {@inheritdoc}$0->field_titulo->first()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:171
- public offsetExists($offset): bool {@inheritdoc}$0->field_titulo->offsetExists()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:178
- public offsetUnset($offset): void {@inheritdoc}$0->field_titulo->offsetUnset()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:186
- public offsetGet($offset): mixed {@inheritdoc}$0->field_titulo->offsetGet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:193
- public offsetSet($offset, $value): void {@inheritdoc}$0->field_titulo->offsetSet()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:200
- public appendItem($value = null) {@inheritdoc}$0->field_titulo->appendItem()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:213
- public getItemDefinition() {@inheritdoc}$0->field_titulo->getItemDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:233
- public getIterator(): ArrayIterator {@inheritdoc}$0->field_titulo->getIterator()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:240
- public count(): int {@inheritdoc}$0->field_titulo->count()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:247
- public isEmpty() {@inheritdoc}$0->field_titulo->isEmpty()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:254
- public filter($callback) {@inheritdoc}$0->field_titulo->filter()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:272
- public onChange($delta) {@inheritdoc}$0->field_titulo->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:294
- public __clone() Magic method: Implements a deep clone.clone $0->field_titulo
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:304
- public last(): ?Drupal\Core\TypedData\TypedDataInterface {@inheritdoc}$0->field_titulo->last()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\Plugin\DataType\ItemList Defined in <drupal>/core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php:314
- public __construct(Drupal\Core\TypedData\DataDefinitionInterface $definition, $name = null, ?Drupal\Core\TypedData\TypedDataInterface $parent = null) Constructs a TypedData object given its definition and context.new \Drupal\text\Plugin\Field\FieldType\TextFieldItemList()
/** * Constructs a TypedData object given its definition and context. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * The data definition. * @param string $name * (optional) The name of the created property, or NULL if it is the root * of a typed data tree. Defaults to NULL. * @param \Drupal\Core\TypedData\TypedDataInterface $parent * (optional) The parent object of the data property, or NULL if it is the * root of a typed data tree. Defaults to NULL. * * @see \Drupal\Core\TypedData\TypedDataManager::create() */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:64
- public getPluginId() {@inheritdoc}$0->field_titulo->getPluginId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:73
- public getPluginDefinition() {@inheritdoc}$0->field_titulo->getPluginDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:80
- public getDataDefinition() {@inheritdoc}$0->field_titulo->getDataDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:87
- public validate() {@inheritdoc}$0->field_titulo->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:131
- public setContext($name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}$0->field_titulo->setContext()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:147
- public getName() {@inheritdoc}$0->field_titulo->getName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:155
- public getRoot() {@inheritdoc}$0->field_titulo->getRoot()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:162
- public getPropertyPath() {@inheritdoc}$0->field_titulo->getPropertyPath()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:173
- public getParent() {@inheritdoc}$0->field_titulo->getParent()
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:195
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected t($string, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\TranslatableMarkup Translates a string to the current language or to a given language.
/** * Translates a string to the current language or to a given language. * * See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for * important security information and usage guidelines. * * In order for strings to be localized, make them available in one of the * ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. When * possible, use the \Drupal\Core\StringTranslation\StringTranslationTrait * $this->t(). Otherwise create a new * \Drupal\Core\StringTranslation\TranslatableMarkup object. * * @param string $string * A string containing the English text to translate. * @param array $args * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. See the * @link i18n Internationalization topic @endlink for more information * about string contexts. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup * An object that, when cast to a string, returns the translated string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() * * @ingroup sanitization */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
- protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()): \Drupal\Core\StringTranslation\PluralTranslatableMarkup Formats a string containing a count of items.
/** * Formats a string containing a count of items. * * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() * * @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup * An object that, when cast to a string, returns the translated string. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:83
- protected getNumberOfPlurals($langcode = null): int Returns the number of plurals supported by a given language.
/** * Returns the number of plurals supported by a given language. * * @see \Drupal\locale\PluralFormulaInterface::getNumberOfPlurals() * * @return int * The number of plurals supported. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:95
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:109
- public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.$0->field_titulo->setStringTranslation()
/** * Sets the string translation service to use. * * @param \Drupal\Core\StringTranslation\TranslationInterface $translation * The string translation service. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:125
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.$0->field_titulo->setTypedDataManager()
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.$0->field_titulo->getTypedDataManager()
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\TypedData Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public defaultValuesFormValidate(array $element, array &$form, Drupal\Core\Form\FormStateInterface $form_state) {@inheritdoc}
- public static Drupal\Core\Field\FieldItemList::processDefaultValue($default_value, Drupal\Core\Entity\FieldableEntityInterface $entity, Drupal\Core\Field\FieldDefinitionInterface $definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldItemList.php:339
- public static Drupal\Core\TypedData\TypedData::createInstance($definition, $name = null, ?Drupal\Core\TypedData\TraversableTypedDataInterface $parent = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedData.php:46
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklistediterator_to_array($0->field_titulo, false)
- ⇄Drupal\Core\Field\FieldItemListInterface Iterator Contents uninitialized Blacklisted
- nid -> string (3) "519"
- protected entityTypeId -> string (4) "node"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (0)
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected values -> array (32)
- nid => array (1)
- x-default => string (3) "519"
- vid => array (1)
- x-default => string (3) "531"
- type => array (1)
- x-default => string (12) "pagina_libre"
- uuid => array (1)
- x-default => string (36) "f1939408-dd2a-4826-bdbe-61651423f6f6"
- langcode => array (1)
- x-default => string (2) "es"
- revision_uid => array (1)
- x-default => string (1) "4"
- revision_timestamp => array (1)
- x-default => string (10) "1713429698"
2024-04-18T08:41:38+00:00
- revision_log => array (1)
- x-default => null
- revision_default => array (1)
- x-default => string (1) "1"
- isDefaultRevision => array (1)
- x-default => string (1) "1"
- status => array (1)
- x-default => string (1) "1"
- uid => array (1)
- x-default => string (1) "4"
- title => array (1)
- x-default => string (9) "Servicios"
- created => array (1)
- x-default => string (10) "1713429698"
2024-04-18T08:41:38+00:00
- changed => array (1)
- x-default => string (10) "1759230695"
2025-09-30T11:11:35+00:00
- promote => array (1)
- x-default => string (1) "0"
- sticky => array (1)
- x-default => string (1) "0"
- default_langcode => array (1)
- x-default => string (1) "1"
- revision_translation_affected => array (1)
- x-default => string (1) "1"
- content_translation_source => array (1)
- x-default => string (3) "und"
- content_translation_outdated => array (1)
- x-default => string (1) "0"
- rh_action => array (1)
- x-default => null
- rh_redirect => array (1)
- x-default => null
- rh_redirect_response => array (1)
- x-default => null
- rh_redirect_fallback_action => array (1)
- x-default => null
- body => array (1)
- x-default => array (1)
- 0 => array (3)
- value => string (72) "<p>dasgar asd ad adas ndaln da ldad asd d asda sdjasdowqr nhqwpur`qw</p>"
- summary => string (0) ""
- format => string (9) "full_html"
- field_content_block => array (1)
- x-default => array (2)
- 0 => array (1)
- target_id => string (3) "527"
- 1 => array (1)
- target_id => string (3) "622"
- field_domain_access => array (1)
- x-default => array (4)
- 0 => array (1)
- target_id => string (18) "cbit2_bitanube_com"
- 1 => array (1)
- target_id => string (17) "cbit_bitanube_com"
- 2 => array (1)
- target_id => string (21) "creative_bitanube_com"
- 3 => array (1)
- target_id => string (21) "demo1_zausen_software"
- field_domain_all_affiliates => array (1)
- x-default => array (1)
- 0 => array (1)
- value => string (1) "0"
- field_imagen => array (1)
- x-default => array (1)
- 0 => array (1)
- target_id => string (3) "326"
- field_layout => array (1)
- x-default => array (1)
- 0 => array (1)
- value => string (7) "default"
- field_titulo => array (1)
- x-default => array (1)
- 0 => array (2)
- value => string (40) "<p>Descubre todos nuestros servicios</p>"
- format => string (17) "html_para_titulos"
- protected fields -> array (0)
- protected fieldDefinitions -> array (39)
- nid => Drupal\Core\Field\BaseFieldDefinition#2850 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (6)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2851 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (2) "ID"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (2) "ID"
- read-only => boolean true
- provider => string (4) "node"
- field_name => string (3) "nid"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2852 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:integer"
- settings => array (6)
- unsigned => boolean true
- size => string (6) "normal"
- min => string (0) ""
- max => string (0) ""
- prefix => string (0) ""
- suffix => string (0) ""
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2850 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "integer"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- uuid => Drupal\Core\Field\BaseFieldDefinition#2853 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (6)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2854 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (4) "UUID"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (4) "UUID"
- read-only => boolean true
- provider => string (4) "node"
- field_name => string (4) "uuid"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2855 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (15) "field_item:uuid"
- settings => array (3)
- max_length => integer 128
- is_ascii => boolean true
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2853 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (4) "uuid"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- vid => Drupal\Core\Field\BaseFieldDefinition#2856 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (6)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2857 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (11) "Revision ID"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (15) "ID de revisión"
- read-only => boolean true
- provider => string (4) "node"
- field_name => string (3) "vid"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2858 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:integer"
- settings => array (6)
- unsigned => boolean true
- size => string (6) "normal"
- min => string (0) ""
- max => string (0) ""
- prefix => string (0) ""
- suffix => string (0) ""
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2856 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "integer"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- langcode => Drupal\Core\Field\BaseFieldDefinition#2859 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (8)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2860 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (8) "Language"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (6) "Idioma"
- display => array (2)
- Table (2)
- Contents (2)
options configurable view array (1) true form array (2) true - view => array (2)
- options => array (1)
- region => string (6) "hidden"
- configurable => boolean true
- form => array (2)
- options => array (2)
- type => string (15) "language_select"
- weight => integer 2
- configurable => boolean true
- revisionable => boolean true
- translatable => boolean true
- provider => string (4) "node"
- field_name => string (8) "langcode"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2861 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (19) "field_item:language"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2859 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (8) "language"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- type => Drupal\Core\Field\BaseFieldDefinition#2862 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- label => string (17) "Tipo de contenido"
- required => boolean true
- read-only => boolean true
- provider => string (4) "node"
- field_name => string (4) "type"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2863 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- target_type => string (9) "node_type"
- handler => string (7) "default"
- handler_settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2862 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (16) "entity_reference"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- revision_timestamp => Drupal\Core\Field\BaseFieldDefinition#2864 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2865 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (20) "Revision create time"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (34) "Revisión del momento de creación"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2866 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (47) "The time that the current revision was created."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description UTF-8 string (48) "La fecha en la que se creó la revisión actual."
- revisionable => boolean true
- provider => string (4) "node"
- field_name => string (18) "revision_timestamp"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2867 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:created"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2864 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "created"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- revision_uid => Drupal\Core\Field\BaseFieldDefinition#2868 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2869 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (13) "Revision user"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (20) "Revisión de usuario"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2870 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (50) "The user ID of the author of the current revision."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description UTF-8 string (52) "El ID del usuario del autor del la revisión actual."
- revisionable => boolean true
- provider => string (4) "node"
- field_name => string (12) "revision_uid"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2871 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:entity_reference"
- settings => array (3)
- target_type => string (4) "user"
- handler => string (7) "default"
- handler_settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2868 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (16) "entity_reference"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- revision_log => Drupal\Core\Field\BaseFieldDefinition#2872 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (9)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2873 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (20) "Revision log message"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (35) "Mensaje del historial de revisiones"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2874 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (43) "Briefly describe the changes you have made."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (49) "Describa brevemente los cambios que ha realizado."
- revisionable => boolean true
- default_value => array (1)
- 0 => array (1)
- value => string (0) ""
- display => array (1)
- form => array (1)
- options => array (3)
- type => string (15) "string_textarea"
- weight => integer 25
- settings => array (1) Depth Limit
- provider => string (4) "node"
- field_name => string (12) "revision_log"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2875 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (22) "field_item:string_long"
- settings => array (1)
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2872 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (11) "string_long"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- status => Drupal\Core\Field\Entity\BaseFieldOverride#2965 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.pagina_libre.status"
- protected status -> boolean true
- protected uuid -> string (36) "b7073063-6f6f-4629-99b7-b5dcff263065"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (24) "node.pagina_libre.status"
- protected field_name -> string (6) "status"
- protected field_type -> string (7) "boolean"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (9) "Published"
- protected description -> string (0) ""
- protected settings -> array (2)
- on_label => string (8) "Activado"
- off_label => string (11) "Desactivado"
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (1)
- 0 => array (1)
- value => integer 1
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> null
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- uid => Drupal\Core\Field\Entity\BaseFieldOverride#2968 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (21) "node.pagina_libre.uid"
- protected status -> boolean true
- protected uuid -> string (36) "0d6e0db7-d16e-4095-b8fc-d6e3099824fe"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (21) "node.pagina_libre.uid"
- protected field_name -> string (3) "uid"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (11) "Escrito por"
- protected description -> string (45) "El nombre de usuario del autor del contenido."
- protected settings -> array (2)
- handler => string (7) "default"
- handler_settings => array (0)
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (46) "Drupal\node\Entity\Node::getDefaultEntityOwner"
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> null
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- title => Drupal\Core\Field\Entity\BaseFieldOverride#2967 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (23) "node.pagina_libre.title"
- protected status -> boolean true
- protected uuid -> string (36) "bb6bd983-94c2-46da-aa4b-75a9a9c90788"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (23) "node.pagina_libre.title"
- protected field_name -> string (5) "title"
- protected field_type -> string (6) "string"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (15) "Título interno"
- protected description -> string (0) ""
- protected settings -> array (0)
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> null
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- created => Drupal\Core\Field\Entity\BaseFieldOverride#2962 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (25) "node.pagina_libre.created"
- protected status -> boolean true
- protected uuid -> string (36) "c6065d88-e261-4854-abd8-a7624fe3cc4d"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (25) "node.pagina_libre.created"
- protected field_name -> string (7) "created"
- protected field_type -> string (7) "created"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (17) "Fecha de autoría"
- protected description -> string (35) "La fecha en que el nodo fue creado."
- protected settings -> array (0)
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> null
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- changed => Drupal\Core\Field\Entity\BaseFieldOverride#2961 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (25) "node.pagina_libre.changed"
- protected status -> boolean true
- protected uuid -> string (36) "e7fbd1c7-5505-46ab-96f0-71853e88017c"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (25) "node.pagina_libre.changed"
- protected field_name -> string (7) "changed"
- protected field_type -> string (7) "changed"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (10) "Modificado"
- protected description -> UTF-8 string (52) "La fecha en que el nodo fue editado por última vez."
- protected settings -> array (0)
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> null
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- promote => Drupal\Core\Field\Entity\BaseFieldOverride#2964 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (25) "node.pagina_libre.promote"
- protected status -> boolean true
- protected uuid -> string (36) "bb51422e-8d87-495c-aab7-217c673af99e"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (25) "node.pagina_libre.promote"
- protected field_name -> string (7) "promote"
- protected field_type -> string (7) "boolean"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (35) "Promocionado a la página principal"
- protected description -> string (0) ""
- protected settings -> array (2)
- on_label => string (8) "Activado"
- off_label => string (11) "Desactivado"
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (1)
- 0 => array (1)
- value => integer 0
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> null
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- sticky => Drupal\Core\Field\Entity\BaseFieldOverride#2966 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (24) "node.pagina_libre.sticky"
- protected status -> boolean true
- protected uuid -> string (36) "7767cbfd-8f65-4c4c-98e0-0d66837c333a"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (24) "node.pagina_libre.sticky"
- protected field_name -> string (6) "sticky"
- protected field_type -> string (7) "boolean"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (30) "Fijo al comienzo de las listas"
- protected description -> string (0) ""
- protected settings -> array (2)
- on_label => string (8) "Activado"
- off_label => string (11) "Desactivado"
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (1)
- 0 => array (1)
- value => integer 0
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> null
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- default_langcode => Drupal\Core\Field\BaseFieldDefinition#2906 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (9)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2907 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (19) "Default translation"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (26) "Traducción predeterminada"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2908 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (58) "A flag indicating whether this is the default translation."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description UTF-8 string (61) "Una marca indicando si esta es la traducción predeterminada."
- translatable => boolean true
- revisionable => boolean true
- default_value => array (1)
- 0 => array (1)
- value => boolean true
- provider => string (4) "node"
- field_name => string (16) "default_langcode"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2909 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:boolean"
- settings => array (2)
- on_label => Drupal\Core\StringTranslation\TranslatableMarkup#2910 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (2) "On"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- on_label string (8) "Activado"
- off_label => Drupal\Core\StringTranslation\TranslatableMarkup#2911 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (3) "Off"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- off_label string (11) "Desactivado"
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2906 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "boolean"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- revision_default => Drupal\Core\Field\BaseFieldDefinition#2912 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2913 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (16) "Default revision"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (24) "Revisión predeterminada"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2914 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (72) "A flag indicating whether this was a default revision when it was saved."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description UTF-8 string (80) "Una marca que indica si esta fue una revisión predeterminada cuando se guardó."
- storage_required => boolean true
- internal => boolean true
- translatable => boolean false
- revisionable => boolean true
- provider => string (4) "node"
- field_name => string (16) "revision_default"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2915 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:boolean"
- settings => array (2)
- on_label => Drupal\Core\StringTranslation\TranslatableMarkup#2916 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (2) "On"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- on_label string (8) "Activado"
- off_label => Drupal\Core\StringTranslation\TranslatableMarkup#2917 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (3) "Off"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- off_label string (11) "Desactivado"
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2912 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "boolean"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- revision_translation_affected => Drupal\Core\Field\BaseFieldDefinition#2918 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (9)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2919 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (29) "Revision translation affected"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (39) "Revisión de traducción está afectado"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2920 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (72) "Indicates if the last edit of a translation belongs to current revision."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description UTF-8 string (81) "Indica si la última edición de una traducción pertenece a la revisión actual."
- read-only => boolean true
- revisionable => boolean true
- translatable => boolean true
- provider => string (4) "node"
- field_name => string (29) "revision_translation_affected"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2921 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:boolean"
- settings => array (2)
- on_label => Drupal\Core\StringTranslation\TranslatableMarkup#2922 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (2) "On"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- on_label string (8) "Activado"
- off_label => Drupal\Core\StringTranslation\TranslatableMarkup#2923 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (3) "Off"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- off_label string (11) "Desactivado"
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2918 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "boolean"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- metatag => Drupal\Core\Field\BaseFieldDefinition#2924 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2925 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (40) "Metatags (Hidden field for JSON support)"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (40) "Metatags (Hidden field for JSON support)"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2926 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (38) "The computed meta tags for the entity."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (38) "The computed meta tags for the entity."
- computed => boolean true
- translatable => boolean true
- read-only => boolean true
- entity_type => string (4) "node"
- cardinality => integer -1
- provider => string (7) "metatag"
- field_name => string (7) "metatag"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2927 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (27) "field_item:metatag_computed"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2924 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (16) "metatag_computed"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- path => Drupal\Core\Field\BaseFieldDefinition#2928 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (8)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2929 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (9) "URL alias"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (12) "Alias de URL"
- translatable => boolean true
- display => array (1)
- form => array (2)
- options => array (2)
- type => string (4) "path"
- weight => integer 30
- configurable => boolean true
- computed => boolean true
- provider => string (4) "path"
- field_name => string (4) "path"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2930 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (15) "field_item:path"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2928 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (4) "path"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- rh_action => Drupal\Core\Field\BaseFieldDefinition#2931 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- field_name => string (9) "rh_action"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2932 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (18) "Rabbit Hole action"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (18) "Rabbit Hole action"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2933 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (52) "Specifies which action that Rabbit Hole should take."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (52) "Specifies which action that Rabbit Hole should take."
- translatable => boolean true
- provider => string (7) "rh_node"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2934 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (17) "field_item:string"
- settings => array (3)
- max_length => integer 255
- is_ascii => boolean false
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2931 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (6) "string"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- rh_redirect => Drupal\Core\Field\BaseFieldDefinition#2935 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- field_name => string (11) "rh_redirect"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2936 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (26) "Rabbit Hole redirect path."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (26) "Rabbit Hole redirect path."
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2937 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (52) "The path to where the user should get redirected to."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (52) "The path to where the user should get redirected to."
- translatable => boolean true
- provider => string (7) "rh_node"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2938 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (17) "field_item:string"
- settings => array (3)
- max_length => integer 255
- is_ascii => boolean false
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2935 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (6) "string"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- rh_redirect_response => Drupal\Core\Field\BaseFieldDefinition#2939 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- field_name => string (20) "rh_redirect_response"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2940 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (34) "Rabbit Hole redirect response code"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (34) "Rabbit Hole redirect response code"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2941 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (77) "Specifies the HTTP response code that should be used when perform a redirect."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (77) "Specifies the HTTP response code that should be used when perform a redirect."
- translatable => boolean true
- provider => string (7) "rh_node"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2942 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:integer"
- settings => array (6)
- unsigned => boolean false
- size => string (6) "normal"
- min => string (0) ""
- max => string (0) ""
- prefix => string (0) ""
- suffix => string (0) ""
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2939 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "integer"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- rh_redirect_fallback_action => Drupal\Core\Field\BaseFieldDefinition#2943 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (7)
- field_name => string (27) "rh_redirect_fallback_action"
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2944 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (36) "Rabbit Hole redirect fallback action"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label string (36) "Rabbit Hole redirect fallback action"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2945 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (84) "Specifies the action that should be used when the redirect path is invalid o...
Specifies the action that should be used when the redirect path is invalid or empty.
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description string (84) "Specifies the action that should be used when the redirect path is invalid o...
Specifies the action that should be used when the redirect path is invalid or empty.
- translatable => boolean true
- provider => string (7) "rh_node"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2946 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (17) "field_item:string"
- settings => array (3)
- max_length => integer 255
- is_ascii => boolean false
- case_sensitive => boolean false
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2943 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (6) "string"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- menu_link => Drupal\Core\Field\Entity\BaseFieldOverride#2963 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (19) "base_field_override"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (27) "node.pagina_libre.menu_link"
- protected status -> boolean true
- protected uuid -> string (36) "e3a53456-ff3d-4c0c-b19b-cc9c9210759c"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (1)
- 0 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (27) "node.pagina_libre.menu_link"
- protected field_name -> string (9) "menu_link"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (15) "Enlace del menu"
- protected description -> UTF-8 string (86) "Enlace de menú calculado para el nodo (solo disponible durante el guardado d...
Enlace de menú calculado para el nodo (solo disponible durante el guardado del nodo).
- protected settings -> array (2)
- handler => string (7) "default"
- handler_settings => array (0)
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected baseFieldDefinition -> null
- public __construct(array $values, $entity_type = 'base_field_override') Constructs a BaseFieldOverride object.
/** * Constructs a BaseFieldOverride object. * * In most cases, base field override entities are created via * BaseFieldOverride::createFromBaseFieldDefinition($definition, 'bundle') * * @param array $values * An array of base field bundle override properties, keyed by property * name. The field to override is specified by referring to an existing * field with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the bundle field override is attached to. Other array * elements will be used to set the corresponding properties on the class; * see the class property documentation for details. * @param string $entity_type * (optional) The type of the entity to create. Defaults to * 'base_field_override'. * * @throws \Drupal\Core\Field\FieldException * Exception thrown if $values does not contain a field_name, entity_type or * bundle value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:106
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:123
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:130
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:137
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:144
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:151
- public isInternal(): bool {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:158
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:165
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:172
- protected getBaseFieldDefinition(): \Drupal\Core\Field\BaseFieldDefinition Gets the base field definition.
/** * Gets the base field definition. * * @return \Drupal\Core\Field\BaseFieldDefinition * An associative array of the base field definition. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:182
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} * * @throws \Drupal\Core\Field\FieldException * If the bundle is being changed. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:196
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:267
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:235
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:275
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\Core\Field\Entity\BaseFieldOverride::createFromBaseFieldDefinition(Drupal\Core\Field\BaseFieldDefinition $base_field_definition, $bundle): \Drupal\Core\Field\Entity\BaseFieldOverride Creates a base field override object.
/** * Creates a base field override object. * * @param \Drupal\Core\Field\BaseFieldDefinition $base_field_definition * The base field definition to override. * @param string $bundle * The bundle to which the override applies. * * @return \Drupal\Core\Field\Entity\BaseFieldOverride * A new base field override object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:75
- public static Drupal\Core\Field\Entity\BaseFieldOverride::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $field_overrides) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:231
- public static Drupal\Core\Field\Entity\BaseFieldOverride::loadByName($entity_type_id, $bundle, $field_name): \Drupal\Core\Field\FieldConfigInterface|null Loads a base field bundle override config entity.
/** * Loads a base field bundle override config entity. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\Core\Field\FieldConfigInterface|null * The base field bundle override config entity if one exists for the * provided field name, otherwise NULL. */ Defined in <drupal>/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php:260
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- content_translation_source => Drupal\Core\Field\BaseFieldDefinition#2951 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2952 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (18) "Translation source"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (24) "Origen de la traducción"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2953 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (60) "The source language from which this translation was created."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description UTF-8 string (59) "El idioma fuente para el que se ha creado esta traducción."
- default_value => array (1)
- 0 => array (1)
- value => string (3) "und"
- initial_value => array (1)
- 0 => array (1)
- value => string (3) "und"
- revisionable => boolean true
- translatable => boolean true
- provider => string (19) "content_translation"
- field_name => string (26) "content_translation_source"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2954 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (19) "field_item:language"
- settings => array (0)
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2951 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (8) "language"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- content_translation_outdated => Drupal\Core\Field\BaseFieldDefinition#2955 (7)
- Properties (7)
- Methods (89)
- Static methods (9)
- Class constants (1)
- protected definition -> array (10)
- label => Drupal\Core\StringTranslation\TranslatableMarkup#2956 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (20) "Translation outdated"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- label UTF-8 string (21) "Traducción anticuada"
- description => Drupal\Core\StringTranslation\TranslatableMarkup#2957 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (66) "A boolean indicating whether this translation needs to be updated."
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- description UTF-8 string (76) "Un valor booleano que indica si esta traducción necesita o no actualizarse."
- default_value => array (1)
- 0 => array (1)
- value => boolean false
- initial_value => array (1)
- 0 => array (1)
- value => boolean false
- revisionable => boolean true
- translatable => boolean true
- provider => string (19) "content_translation"
- field_name => string (28) "content_translation_outdated"
- entity_type => string (4) "node"
- bundle => null
- protected typedDataManager -> null
- protected itemDefinition -> Drupal\Core\Field\TypedData\FieldItemDataDefinition#2958 (3)
- Properties (3)
- Methods (39)
- Static methods (4)
- protected definition -> array (2)
- type => string (18) "field_item:boolean"
- settings => array (2)
- on_label => Drupal\Core\StringTranslation\TranslatableMarkup#2959 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (2) "On"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- on_label string (8) "Activado"
- off_label => Drupal\Core\StringTranslation\TranslatableMarkup#2960 (5)
- Properties (5)
- Methods (12)
- Static methods (2)
- toString
- protected string -> string (3) "Off"
- protected arguments -> array (0)
- protected translatedMarkup -> null
- protected options -> array (0)
- protected stringTranslation -> null
- public __construct($string, array $arguments = array(), array $options = array(), ?Drupal\Core\StringTranslation\TranslationInterface $string_translation = null) Constructs a new class instance.
/** * Constructs a new class instance. * * When possible, use the * \Drupal\Core\StringTranslation\StringTranslationTrait $this->t(). Otherwise * create a new \Drupal\Core\StringTranslation\TranslatableMarkup object * directly. * * Calling the trait's t() method or instantiating a new TranslatableMarkup * object serves two purposes: * - At run-time it translates user-visible text into the appropriate * language. * - Static analyzers detect calls to t() and new TranslatableMarkup, and add * the first argument (the string to be translated) to the database of * strings that need translation. These strings are expected to be in * English, so the first argument should always be in English. * To allow the site to be localized, it is important that all human-readable * text that will be displayed on the site or sent to a user is made available * in one of the ways supported by the * @link https://www.drupal.org/node/322729 Localization API @endlink. * See the @link https://www.drupal.org/node/322729 Localization API @endlink * pages for more information, including recommendations on how to break up or * not break up strings for translation. * * @section sec_translating_vars Translating Variables * $string should always be an English literal string. * * $string should never contain a variable, such as: * @code * new TranslatableMarkup($text) * @endcode * There are several reasons for this: * - Using a variable for $string that is user input is a security risk. * - Using a variable for $string that has even guaranteed safe text (for * example, user interface text provided literally in code), will not be * picked up by the localization static text processor. (The parameter could * be a variable if the entire string in $text has been passed into t() or * new TranslatableMarkup() elsewhere as the first argument, but that * strategy is not recommended.) * * It is especially important never to call new TranslatableMarkup($user_text) * or t($user_text) where $user_text is some text that a user entered -- doing * that can lead to cross-site scripting and other security problems. However, * you can use variable substitution in your string, to put variable text such * as user names or link URLs into translated text. Variable substitution * looks like this: * @code * new TranslatableMarkup("@name's blog", ['@name' => $account->getDisplayName()]); * @endcode * Basically, you can put placeholders like @name into your string, and the * method will substitute the sanitized values at translation time. (See the * Localization API pages referenced above and the documentation of * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * for details about how to safely and correctly define variables in your * string.) Translators can then rearrange the string as necessary for the * language (e.g., in Spanish, it might be "blog de @name"). * * @param string $string * A string containing the English text to translate. * @param array $arguments * (optional) An associative array of replacements to make after * translation. Based on the first character of the key, the value is * escaped and/or themed. See * \Drupal\Component\Render\FormattableMarkup::placeholderFormat() for * details. * @param array $options * (optional) An associative array of additional options, with the following * elements: * - 'langcode' (defaults to the current language): A language code, to * translate to a language other than what is used to display the page. * - 'context' (defaults to the empty context): The context the source * string belongs to. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * (optional) The string translation service. * * @throws \InvalidArgumentException * Exception thrown when $string is not a string. * * @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat() * @see \Drupal\Core\StringTranslation\StringTranslationTrait::t() * * @ingroup sanitization */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:129
- public getUntranslatedString(): string Gets the untranslated string value stored in this translated string.
/** * Gets the untranslated string value stored in this translated string. * * @return string * The string stored in this wrapper. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:145
- public getOption($name): mixed Gets a specific option from this translated string.
/** * Gets a specific option from this translated string. * * @param string $name * Option name. * * @return mixed * The value of this option or empty string of option is not set. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:158
- public getOptions(): mixed[] Gets all options from this translated string.
/** * Gets all options from this translated string. * * @return mixed[] * The array of options. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:168
- public getArguments(): mixed[] Gets all arguments from this translated string.
/** * Gets all arguments from this translated string. * * @return mixed[] * The array of arguments. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:178
- public render(): string Renders the object as a string.
/** * Renders the object as a string. * * @return string * The translated string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
- public __sleep(): array Magic __sleep() method to avoid serializing the string translator.
/** * Magic __sleep() method to avoid serializing the string translator. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
- protected getStringTranslation(): \Drupal\Core\StringTranslation\TranslationInterface Gets the string translation service.
/** * Gets the string translation service. * * @return \Drupal\Core\StringTranslation\TranslationInterface * The string translation service. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
- public count(): int Returns the string length.
/** * Returns the string length. * * @return int * The length of the string. */ Defined in <drupal>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:227
- public __toString(): string Implements the magic __toString() method.
/** * Implements the magic __toString() method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
- public jsonSerialize(): string Returns a representation of the object for use in JSON serialization.
/** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ Inherited from Drupal\Component\Render\FormattableMarkup Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:97
- protected _die() For test purposes, wrap die() in an overridable method.
/** * For test purposes, wrap die() in an overridable method. */ Defined in <drupal>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
- protected static Drupal\Component\Render\FormattableMarkup::placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
/** * Replaces placeholders in a string with values. * * For convenience examples are listed here. Refer to the parameter * description for $args for details of the placeholders "@", "%", and ":". * * Secure examples. * @code * // Return the HTML string "Prefix $some_variable". * $this->placeholderFormat('Prefix @foo', ['@foo' => $some_variable]); * // Convert an object to a sanitized string. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => (string) $safe_string_interface_object]); * // Wrap $some_variable in an <em> tag. * $this->placeholderFormat('Prefix %foo', ['%foo' => $some_variable]); * // The following are using the : placeholder inside an HTML tag. * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo" title="static text">link text</a>', [':foo' => $some_variable]); * $this->placeholderFormat('<a href=":foo">link text</a>', [':foo' => $some_variable]); * // Use a : placeholder inside an HTML tag. * $this->placeholderFormat('<img src=":foo" />', [':foo' => '/image.png']); * @endcode * The above are typical examples of using the placeholders correctly. * * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode * These are the more common mistakes that can be made. Make sure that your * site is not using any insecure usages of these placeholders. * * @param string $string * A string containing placeholders. The string itself is expected to be * safe and correct HTML. Any unsafe content must be in $args and inserted * via placeholders. It is insecure to use the @ or % placeholders within * the "<" and ">" of an HTML tag. * @param array $args * An associative array of replacements. Each array key should be the same * as a placeholder in $string. The corresponding value should be a string * or an object that implements \Drupal\Component\Render\MarkupInterface. * The args[] value replaces the placeholder in $string. Sanitization and * formatting will be done before replacement. The type of sanitization * and formatting depends on the first character of the key: * - @variable: Use as the default choice for anything displayed on the * site. Do not use within the "<" and ">" of an HTML tag, such as in * HTML attribute values. Doing so is a security risk. * - %variable: Use when @variable would be appropriate, but you want the * placeholder value to be wrapped in an <em> tag with a placeholder * class. As with @variable, do not use within the "<" and ">" of an HTML * tag, such as in HTML attribute values. Doing so is a security risk. * - :variable: Use when the return value is to be used as a URL value of an * HTML attribute. Only the "href" attribute is supported. The return * value is escaped with * \Drupal\Component\Utility\Html::escape() and filtered for dangerous * protocols using UrlHelper::stripDangerousProtocols(). Use this when * using the "href" attribute, ensuring the value is always wrapped in * quotes. * * @return string * A formatted HTML string with the placeholders replaced. * * @ingroup sanitization * * @see \Drupal\Core\StringTranslation\TranslatableMarkup * @see \Drupal\Core\StringTranslation\PluralTranslatableMarkup * @see \Drupal\Component\Utility\Html::escape() * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() * @see \Drupal\Core\Url::fromUri() */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:175
- protected static Drupal\Component\Render\FormattableMarkup::placeholderEscape($value): string Escapes a placeholder replacement value if needed.
/** * Escapes a placeholder replacement value if needed. * * @param string|\Drupal\Component\Render\MarkupInterface $value * A placeholder replacement value. * * @return string * The properly escaped replacement value. */ Defined in <drupal>/core/lib/Drupal/Component/Render/FormattableMarkup.php:237
- off_label string (11) "Desactivado"
- protected typedDataManager -> null
- protected fieldDefinition -> Drupal\Core\Field\BaseFieldDefinition#2955 Recursion
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:57
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:64
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:71
- public getFieldDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:78
- public setFieldDefinition($field_definition) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:85
- public getLabel(): string Gets the label of the field type.
/** * Gets the label of the field type. * * If the label hasn't been set, then fall back to the label of the * typed data definition. * * @return string * The label of the field type. * * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:101
- public __construct(array $values = array()) Constructs a new data definition object.
/** * Constructs a new data definition object. * * @param array $values * (optional) If given, an array of initial values to set on the definition. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:46
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:53
- public setDataType($type): static Sets the data type.
/** * Sets the data type. * * @param string $type * The data type to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:66
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:190
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:217
- public setSettings(array $settings): static Sets the array of settings, as required by the used class.
/** * Sets the array of settings, as required by the used class. * * @param array $settings * The array of settings. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:230
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:238
- public setSetting($setting_name, $value): static Sets a definition setting.
/** * Sets a definition setting. * * @param string $setting_name * The definition setting to set. * @param mixed $value * The value to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:253
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:373
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:383
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::createFromDataType($data_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:28
- public static Drupal\Core\Field\TypedData\FieldItemDataDefinition::create($field_definition): static Creates a new field item definition.
/** * Creates a new field item definition. * * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition * The field definition the item definition belongs to. * * @return static */ Defined in <drupal>/core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php:47
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- protected type -> string (7) "boolean"
- protected propertyDefinitions -> null
- protected schema -> null
- protected indexes -> array (0)
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:110
- public setName($name): static Sets the field name.
/** * Sets the field name. * * @param string $name * The field name to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:123
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:131
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:138
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} * * Note that the method does not unset existing settings not specified in the * incoming $settings array. * * For example: * @code * // Given these are the default settings. * $field_definition->getSettings() === [ * 'fruit' => 'apple', * 'season' => 'summer', * ]; * // Change only the 'fruit' setting. * $field_definition->setSettings(['fruit' => 'banana']); * // The 'season' setting persists unchanged. * $field_definition->getSettings() === [ * 'fruit' => 'banana', * 'season' => 'summer', * ]; * @endcode * * For clarity, it is preferred to use setSetting() if not all available * settings are supplied. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:167
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:179
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:186
- public getProvider() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:194
- public setProvider($provider): $this Sets the name of the provider of this field.
/** * Sets the name of the provider of this field. * * @param string $provider * The provider name to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:206
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:214
- public setTranslatable($translatable): $this Sets whether the field is translatable.
/** * Sets whether the field is translatable. * * @param bool $translatable * Whether the field is translatable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:227
- public isRevisionable() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:235
- public setRevisionable($revisionable): $this Sets whether the field is revisionable.
/** * Sets whether the field is revisionable. * * @param bool $revisionable * Whether the field is revisionable. * * @return $this * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:250
- public getCardinality() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:258
- public setCardinality($cardinality): $this Sets the maximum number of items allowed for the field.
/** * Sets the maximum number of items allowed for the field. * * Possible values are positive integers or * FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. * * Note that if the entity type that this base field is attached to is * revisionable and the field has a cardinality higher than 1, the field is * considered revisionable by default. * * @param int $cardinality * The field cardinality. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:278
- public isMultiple() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:286
- public setPropertyConstraints($name, array $constraints): static Sets constraints for a given field item property.
/** * Sets constraints for a given field item property. * * Note: this overwrites any existing property constraints. If you need to * add to the existing constraints, use * \Drupal\Core\Field\BaseFieldDefinition::addPropertyConstraints() * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:306
- public addPropertyConstraints($name, array $constraints): static Adds constraints for a given field item property.
/** * Adds constraints for a given field item property. * * Adds a constraint to a property of a base field item. e.g. * @code * // Limit the field item's value property to the range 0 through 10. * // e.g. $node->size->value. * $field->addPropertyConstraints('value', [ * 'Range' => [ * 'min' => 0, * 'max' => 10, * ] * ]); * @endcode * * If you want to add a validation constraint that applies to the * \Drupal\Core\Field\FieldItemList, use BaseFieldDefinition::addConstraint() * instead. * * Note: passing a new set of options for an existing property constraint will * overwrite with the new options. * * @param string $name * The name of the property to set constraints for. * @param array $constraints * The constraints to set. * * @return static * The object itself for chaining. * * @see \Drupal\Core\Field\BaseFieldDefinition::addConstraint() */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:345
- public setDisplayOptions($display_context, array $options): static Sets the display options for the field in forms or rendered entities.
/** * Sets the display options for the field in forms or rendered entities. * * This enables generic rendering of the field with widgets / formatters, * including automated support for "In place editing", and with optional * configurability in the "Manage display" / "Manage form display" UI screens. * * Unless this method is called, the field remains invisible (or requires * ad-hoc rendering logic). * * @param string $display_context * The display context. Either 'view' or 'form'. * @param array $options * An array of display options. Refer to * \Drupal\Core\Field\FieldDefinitionInterface::getDisplayOptions() for * a list of supported keys. The options should include at least a 'weight', * or specify 'region' = 'hidden'. The 'default_widget' / * 'default_formatter' for the field type will be used if no 'type' is * specified. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:381
- public setDisplayConfigurable($display_context, $configurable): static Sets whether the display for the field can be configured.
/** * Sets whether the display for the field can be configured. * * @param string $display_context * The display context. Either 'view' or 'form'. * @param bool $configurable * Whether the display options can be configured (e.g., via the "Manage * display" / "Manage form display" UI screens). If TRUE, the options * specified via getDisplayOptions() act as defaults. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:399
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:411
- public isDisplayConfigurable($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:418
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:425
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:432
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:439
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:456
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:476
- public getInitialValue(): array Returns the initial value for the field.
/** * Returns the initial value for the field. * * @return array * The initial value for the field, as a numerically indexed array of items, * each item being a property/value array. An empty array when there is no * default value. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:492
- public setInitialValue($value): $this Sets an initial value for the field.
/** * Sets an initial value for the field. * * @param mixed $value * The initial value for the field. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:511
- public getInitialValueFromField(): string|null Returns the name of the field that will be used for getting initial values.
/** * Returns the name of the field that will be used for getting initial values. * * @return string|null * The field name. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:528
- public setInitialValueFromField($field_name, $default_value = null): $this Sets a field that will be used for getting initial values.
/** * Sets a field that will be used for getting initial values. * * @param string $field_name * The name of the field that will be used for getting initial values. * @param mixed $default_value * (optional) The default value for the field, in case the inherited value * is NULL. This can be either: * - a literal, in which case it will be assigned to the first property of * the first item; * - a numerically indexed array of items, each item being a property/value * array; * - a non-numerically indexed array, in which case the array is assumed to * be a property/value array and used as the first item; * - an empty array for no initial value. * If the field being added is required or an entity key, it is recommended * to provide a default value. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:552
- public getOptionsProvider($property_name, Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:561
- public getPropertyDefinition($name) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:576
- public getPropertyDefinitions() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:591
- public getPropertyNames() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:602
- public getMainPropertyName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:609
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:617
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:627
- public setTargetEntityTypeId($entity_type_id): $this Sets the ID of the type of the entity this field is attached to.
/** * Sets the ID of the type of the entity this field is attached to. * * @param string $entity_type_id * The name of the target entity type to set. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:639
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:647
- public setTargetBundle($bundle): $this Sets the bundle this field is defined for.
/** * Sets the bundle this field is defined for. * * @param string|null $bundle * The bundle, or NULL if the field is not bundle-specific. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:659
- public getSchema() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:667
- public getColumns() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:694
- public hasCustomStorage() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:702
- public isBaseField() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:709
- public setCustomStorage($custom_storage): $this Sets the storage behavior for this field.
/** * Sets the storage behavior for this field. * * @param bool $custom_storage * Pass FALSE if the storage takes care of storing the field, * TRUE otherwise. * * @return $this * * @throws \LogicException * Thrown if custom storage is to be set to FALSE for a computed field. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:725
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:736
- public getUniqueStorageIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:743
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:750
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:763
- public setDeleted($deleted): $this Sets whether the field storage is deleted.
/** * Sets whether the field storage is deleted. * * @param bool $deleted * Whether the field storage is deleted. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:775
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:783
- public isStorageRequired() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:794
- public setStorageRequired($required): static Sets whether the field storage is required.
/** * Sets whether the field storage is required. * * @param bool $required * Whether the field storage is required. * * @return static * The object itself for chaining. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:812
- public __clone() Magic method: Implements a deep clone.
/** * Magic method: Implements a deep clone. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:820
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:837
- public __construct(array $values = array(), ?Drupal\Core\TypedData\DataDefinitionInterface $item_definition = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:50
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:58
- public setDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:65
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:74
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:92
- public setItemDefinition(Drupal\Core\TypedData\DataDefinitionInterface $definition): $this Sets the item definition.
/** * Sets the item definition. * * @param \Drupal\Core\TypedData\DataDefinitionInterface $definition * A list item's data definition. * * @return $this */ Inherited from Drupal\Core\TypedData\ListDataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:104
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:74
- public setLabel($label): static Sets the human-readable label.
/** * Sets the human-readable label. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label * The label to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:87
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:95
- public setDescription($description): static Sets the human-readable description.
/** * Sets the human-readable description. * * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description * The description to set. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:108
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:116
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:123
- public setReadOnly($read_only): static Sets whether the data is read-only.
/** * Sets whether the data is read-only. * * @param bool $read_only * Whether the data is read-only. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:140
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:148
- public setComputed($computed): static Sets whether the data is computed.
/** * Sets whether the data is computed. * * @param bool $computed * Whether the data is computed. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:161
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:169
- public setRequired($required): static Sets whether the data is required.
/** * Sets whether the data is required. * * @param bool $required * Whether the data is required. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:182
- public setClass($class): static Sets the class used for creating the typed data object.
/** * Sets the class used for creating the typed data object. * * @param string|null $class * The class to use. * * @return static * The object itself for chaining. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:209
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:261
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:283
- public setConstraints(array $constraints): $this Sets an array of validation constraints.
/** * Sets an array of validation constraints. * * @param array $constraints * An array of validation constraint definitions, keyed by constraint name. * Each constraint definition can be used for instantiating * \Symfony\Component\Validator\Constraint objects. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:298
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:306
- public offsetExists($offset): bool {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:318
- public & offsetGet($offset): mixed {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:331
- public offsetSet($offset, $value): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:345
- public offsetUnset($offset): void {@inheritdoc}
/** * {@inheritdoc} * * This is for BC support only. * * @todo Remove in https://www.drupal.org/node/1928868. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:356
- public toArray(): array Returns all definition values as array.
/** * Returns all definition values as array. * * @return array * The array holding values for all definition keys. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:366
- public setInternal($internal): $this Sets the whether the data value should be internal.
/** * Sets the whether the data value should be internal. * * @param bool $internal * Whether the data value should be internal. * * @return $this * * @see \Drupal\Core\TypedData\DataDefinitionInterface::isInternal */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:401
- public setTypedDataManager(Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager): $this Sets the typed data manager.
/** * Sets the typed data manager. * * @param \Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager * The typed data manager. * * @return $this */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:25
- public getTypedDataManager(): \Drupal\Core\TypedData\TypedDataManagerInterface Gets the typed data manager.
/** * Gets the typed data manager. * * @return \Drupal\Core\TypedData\TypedDataManagerInterface * The typed data manager. */ Inherited from Drupal\Core\TypedData\DataDefinition Defined in <drupal>/core/lib/Drupal/Core/TypedData/TypedDataTrait.php:36
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:15
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:22
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php:29
- public static Drupal\Core\Field\BaseFieldDefinition::create($type): static Creates a new field definition.
/** * Creates a new field definition. * * @param string $type * The type of the field. * * @return static * A new field definition object. */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:57
- public static Drupal\Core\Field\BaseFieldDefinition::createFromFieldStorageDefinition(Drupal\Core\Field\FieldStorageDefinitionInterface $definition): $this Creates a new field definition based upon a field storage definition.
/** * Creates a new field definition based upon a field storage definition. * * In cases where one needs a field storage definitions to act like full * field definitions, this creates a new field definition based upon the * (limited) information available. That way it is possible to use the field * definition in places where a full field definition is required; e.g., with * widgets or formatters. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $definition * The field storage definition to base the new field definition upon. * * @return $this */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:83
- public static Drupal\Core\Field\BaseFieldDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/BaseFieldDefinition.php:101
- public static Drupal\Core\TypedData\ListDataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:33
- protected static Drupal\Core\Field\BaseFieldDefinition::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::create($item_type): static Creates a new list definition.
/** * Creates a new list definition. * * @param string $item_type * The data type of the list items; e.g., 'string', 'integer' or 'any'. * * @return static * A new List Data Definition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:26
- public static Drupal\Core\TypedData\ListDataDefinition::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/ListDataDefinition.php:43
- public static Drupal\Core\TypedData\DataDefinition::create($type): static Creates a new data definition.
/** * Creates a new data definition. * * @param string $type * The data type of the data; e.g., 'string', 'integer' or 'any'. * * @return static * A new DataDefinition object. */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:28
- public static Drupal\Core\TypedData\DataDefinition::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/TypedData/DataDefinition.php:36
- public const Drupal\Core\Field\FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED :: integer -1
- body => Drupal\field\Entity\FieldConfig#2969 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (22) "node.pagina_libre.body"
- protected status -> boolean true
- protected uuid -> string (36) "492a3940-6aef-492b-8379-9ca1ef2d6273"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2)
- 0 => string (23) "field.storage.node.body"
- 1 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (4) "text"
- protected isSyncing -> boolean false
- protected id -> string (22) "node.pagina_libre.body"
- protected field_name -> string (4) "body"
- protected field_type -> string (17) "text_with_summary"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (6) "Cuerpo"
- protected description -> string (0) ""
- protected settings -> array (2)
- display_summary => boolean false
- required_summary => boolean false
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_content_block => Drupal\field\Entity\FieldConfig#2970 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_content_block"
- protected status -> boolean true
- protected uuid -> string (36) "24e52fbc-71fd-43eb-85f0-2123d2702b44"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3)
- 0 => string (38) "field.storage.node.field_content_block"
- 1 => string (23) "node.type.content_block"
- 2 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_content_block"
- protected field_name -> string (19) "field_content_block"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (19) "Bloque de contenido"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (12) "default:node"
- handler_settings => array (4)
- target_bundles => array (1)
- content_block => string (13) "content_block"
- sort => array (2)
- field => string (5) "_none"
- direction => string (3) "ASC"
- auto_create => boolean false
- auto_create_bundle => string (0) ""
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_domain_access => Drupal\field\Entity\FieldConfig#2971 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_domain_access"
- protected status -> boolean true
- protected uuid -> string (36) "4a32f9cd-eb0d-462c-b416-e505e325933d"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (1)
- domain_access => array (1)
- add_current_domain => boolean true
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2)
- 0 => string (38) "field.storage.node.field_domain_access"
- 1 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (13) "domain_access"
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_domain_access"
- protected field_name -> string (19) "field_domain_access"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (13) "Domain Access"
- protected description -> string (47) "Select the affiliate domain(s) for this content"
- protected settings -> array (2)
- handler => string (14) "default:domain"
- handler_settings => array (2)
- target_bundles => null
- sort => array (2)
- field => string (6) "weight"
- direction => string (3) "ASC"
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> null
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_domain_all_affiliates => Drupal\field\Entity\FieldConfig#2972 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (45) "node.pagina_libre.field_domain_all_affiliates"
- protected status -> boolean true
- protected uuid -> string (36) "0e613e0b-ff62-4a5f-840d-5d86cc36c9ae"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (2)
- 0 => string (46) "field.storage.node.field_domain_all_affiliates"
- 1 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (45) "node.pagina_libre.field_domain_all_affiliates"
- protected field_name -> string (27) "field_domain_all_affiliates"
- protected field_type -> string (7) "boolean"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (22) "Send to all affiliates"
- protected description -> string (43) "Make this content available on all domains."
- protected settings -> array (2)
- on_label => string (8) "Activado"
- off_label => string (11) "Desactivado"
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_imagen => Drupal\field\Entity\FieldConfig#2973 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (30) "node.pagina_libre.field_imagen"
- protected status -> boolean true
- protected uuid -> string (36) "ca53e633-4343-4e01-8b75-8fbe45f4ff4a"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3)
- 0 => string (31) "field.storage.node.field_imagen"
- 1 => string (16) "media.type.image"
- 2 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (30) "node.pagina_libre.field_imagen"
- protected field_name -> string (12) "field_imagen"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (6) "Imagen"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (13) "default:media"
- handler_settings => array (4)
- target_bundles => array (1)
- image => string (5) "image"
- sort => array (2)
- field => string (5) "_none"
- direction => string (3) "ASC"
- auto_create => boolean false
- auto_create_bundle => string (0) ""
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_layout => Drupal\field\Entity\FieldConfig#2974 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (30) "node.pagina_libre.field_layout"
- protected status -> boolean true
- protected uuid -> string (36) "a754c97c-2f4d-4953-aed0-89bcbbb322f7"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2)
- 0 => string (31) "field.storage.node.field_layout"
- 1 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (7) "options"
- protected isSyncing -> boolean false
- protected id -> string (30) "node.pagina_libre.field_layout"
- protected field_name -> string (12) "field_layout"
- protected field_type -> string (11) "list_string"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (6) "Layout"
- protected description -> UTF-8 string (57) "Indica el layout que quieres utilizar en la página libre"
- protected settings -> array (0)
- protected required -> boolean true
- protected translatable -> boolean false
- protected default_value -> array (1)
- 0 => array (1)
- value => string (7) "default"
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_menu_contextual => Drupal\field\Entity\FieldConfig#2975 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (39) "node.pagina_libre.field_menu_contextual"
- protected status -> boolean true
- protected uuid -> string (36) "dd06008b-fb16-46dc-aded-f72cdae7f83f"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (2)
- 0 => string (40) "field.storage.node.field_menu_contextual"
- 1 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (39) "node.pagina_libre.field_menu_contextual"
- protected field_name -> string (21) "field_menu_contextual"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (16) "Menú contextual"
- protected description -> UTF-8 string (323) "Indica un menú adicional que se mostrará solo en la página actual. <br> Util...
Indica un menú adicional que se mostrará solo en la página actual. <br> Utilizado para enlaces de interés relacionados con el contenido de la página o para guiar al usuario a los siguientes contenidos.<br> Puedes añadir o gestionar menús a través de este enlace: <a href="/admin/structure/menu">gestión menú</a>
- protected settings -> array (2)
- handler => string (12) "default:menu"
- handler_settings => array (2)
- target_bundles => null
- auto_create => boolean false
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_metatags => Drupal\field\Entity\FieldConfig#2976 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (32) "node.pagina_libre.field_metatags"
- protected status -> boolean true
- protected uuid -> string (36) "8b758036-a77d-45e3-b023-c831354128f9"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (2)
- 0 => string (33) "field.storage.node.field_metatags"
- 1 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (7) "metatag"
- protected isSyncing -> boolean false
- protected id -> string (32) "node.pagina_libre.field_metatags"
- protected field_name -> string (14) "field_metatags"
- protected field_type -> string (7) "metatag"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (8) "Metatags"
- protected description -> string (0) ""
- protected settings -> array (0)
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_sigue_leyendo => Drupal\field\Entity\FieldConfig#2977 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (37) "node.pagina_libre.field_sigue_leyendo"
- protected status -> boolean true
- protected uuid -> string (36) "f7035a48-8218-4214-a489-49b86ead9ee0"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3)
- 0 => string (38) "field.storage.node.field_sigue_leyendo"
- 1 => string (22) "node.type.pagina_libre"
- 2 => string (23) "node.type.sigue_leyendo"
- protected isSyncing -> boolean false
- protected id -> string (37) "node.pagina_libre.field_sigue_leyendo"
- protected field_name -> string (19) "field_sigue_leyendo"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (13) "Sigue leyendo"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (12) "default:node"
- handler_settings => array (4)
- target_bundles => array (1)
- sigue_leyendo => string (13) "sigue_leyendo"
- sort => array (2)
- field => string (5) "_none"
- direction => string (3) "ASC"
- auto_create => boolean false
- auto_create_bundle => string (0) ""
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_slider => Drupal\field\Entity\FieldConfig#2978 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (30) "node.pagina_libre.field_slider"
- protected status -> boolean true
- protected uuid -> string (36) "32bef2c1-8cdd-4cfc-bc57-6d70d01c654a"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (3)
- 0 => string (31) "field.storage.node.field_slider"
- 1 => string (22) "node.type.pagina_libre"
- 2 => string (16) "node.type.slider"
- protected isSyncing -> boolean false
- protected id -> string (30) "node.pagina_libre.field_slider"
- protected field_name -> string (12) "field_slider"
- protected field_type -> string (16) "entity_reference"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> string (6) "Slider"
- protected description -> string (0) ""
- protected settings -> array (2)
- handler => string (12) "default:node"
- handler_settings => array (4)
- target_bundles => array (1)
- slider => string (6) "slider"
- sort => array (2)
- field => string (5) "_none"
- direction => string (3) "ASC"
- auto_create => boolean false
- auto_create_bundle => string (0) ""
- protected required -> boolean false
- protected translatable -> boolean false
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_subtitulo => Drupal\field\Entity\FieldConfig#2979 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (33) "node.pagina_libre.field_subtitulo"
- protected status -> boolean true
- protected uuid -> string (36) "9f76a129-9eaa-4ce4-b4a8-1d6a6aa34d18"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (1)
- config => array (2)
- 0 => string (34) "field.storage.node.field_subtitulo"
- 1 => string (22) "node.type.pagina_libre"
- protected isSyncing -> boolean false
- protected id -> string (33) "node.pagina_libre.field_subtitulo"
- protected field_name -> string (15) "field_subtitulo"
- protected field_type -> string (6) "string"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (10) "Subtítulo"
- protected description -> UTF-8 string (87) "Etiqueta <b>h3</b><br> <b>Recomendación de caracteres</b>: Entre 60 y 120 ca...
Etiqueta <b>h3</b><br> <b>Recomendación de caracteres</b>: Entre 60 y 120 caracteres.
- protected settings -> array (0)
- protected required -> boolean false
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- field_titulo => Drupal\field\Entity\FieldConfig#2980 (36)
- Properties (36)
- Methods (125)
- Static methods (19)
- protected entityTypeId -> string (12) "field_config"
- protected enforceIsNew -> null
- protected typedData -> null
- protected originalEntity -> null
- protected cacheContexts -> array (1)
- 0 => string (28) "languages:language_interface"
- protected cacheTags -> array (0)
- protected cacheMaxAge -> integer -1
- protected _serviceIds -> array (0)
- protected _entityStorages -> array (0)
- protected originalId -> string (30) "node.pagina_libre.field_titulo"
- protected status -> boolean true
- protected uuid -> string (36) "f41a733a-3a9e-4aa5-93f9-cc4640d43f70"
- private isUninstalling -> boolean false
- protected langcode -> string (2) "es"
- protected third_party_settings -> array (0)
- protected _core -> array (0)
- protected trustedData -> boolean false
- protected dependencies -> array (2)
- config => array (3)
- 0 => string (31) "field.storage.node.field_titulo"
- 1 => string (31) "filter.format.html_para_titulos"
- 2 => string (22) "node.type.pagina_libre"
- module => array (1)
- 0 => string (4) "text"
- protected isSyncing -> boolean false
- protected id -> string (30) "node.pagina_libre.field_titulo"
- protected field_name -> string (12) "field_titulo"
- protected field_type -> string (4) "text"
- protected entity_type -> string (4) "node"
- protected bundle -> string (12) "pagina_libre"
- protected label -> UTF-8 string (7) "Título"
- protected description -> UTF-8 string (86) "Etiqueta <b>h1</b><br> <b>Recomendación de caracteres</b>: Entre 20 y 60 car...
Etiqueta <b>h1</b><br> <b>Recomendación de caracteres</b>: Entre 20 y 60 caracteres.
- protected settings -> array (1)
- allowed_formats => array (1)
- 0 => string (17) "html_para_titulos"
- protected required -> boolean true
- protected translatable -> boolean true
- protected default_value -> array (0)
- protected default_value_callback -> string (0) ""
- protected fieldStorage -> null
- protected itemDefinition -> null
- protected constraints -> array (0)
- protected propertyConstraints -> array (0)
- protected deleted -> boolean false
- public __construct(array $values, $entity_type = 'field_config') Constructs a FieldConfig object.
/** * Constructs a FieldConfig object. * * In most cases, Field entities are created via * FieldConfig::create($values), where $values is the same * parameter as in this constructor. * * @param array $values * An array of field properties, keyed by property name. The * storage associated with the field can be specified either with: * - field_storage: the FieldStorageConfigInterface object, * or by referring to an existing field storage in the current configuration * with: * - field_name: The field name. * - entity_type: The entity type. * Additionally, a 'bundle' property is required to indicate the entity * bundle to which the field is attached to. Other array elements will be * used to set the corresponding properties on the class; see the class * property documentation for details. * @param string $entity_type * (optional) The entity type on which the field should be created. * Defaults to "field_config". */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:110
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:143
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) Overrides \Drupal\Core\Entity\EntityBase::preSave().
/** * Overrides \Drupal\Core\Entity\EntityBase::preSave(). * * @throws \Drupal\Core\Field\FieldException * If the field definition is invalid. * @throws \Drupal\Core\Entity\EntityStorageException * In case of failures at the configuration storage level. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:165
- public calculateDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:201
- protected linkTemplates() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:264
- protected urlRouteParameters($rel) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:280
- public isDeleted() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:291
- public getFieldStorageDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:298
- public isDisplayConfigurable($context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:332
- public getDisplayOptions($display_context) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:339
- public isReadOnly() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:347
- public isComputed() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:354
- public getUniqueIdentifier() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:361
- public id() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:200
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:207
- public getType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:214
- public getTargetEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:221
- public getTargetBundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:228
- public onDependencyRemoval(array $dependencies) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:262
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:310
- public getLabel() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:324
- public setLabel($label) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:332
- public getDescription() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:340
- public setDescription($description) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:348
- public isTranslatable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:356
- public setTranslatable($translatable) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:365
- public getSettings() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:373
- public setSettings(array $settings) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:381
- public getSetting($setting_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:389
- public setSetting($setting_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:401
- public isRequired() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:409
- public setRequired($required) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:417
- public getDefaultValue(Drupal\Core\Entity\FieldableEntityInterface $entity) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:425
- public getDefaultValueLiteral() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:442
- public setDefaultValue($value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:450
- public getDefaultValueCallback() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:458
- public setDefaultValueCallback($callback) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:465
- public __sleep(): array Implements the magic __sleep() method.
/** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods * breaks entity forms in PHP 5.4. * * @todo Investigate in https://www.drupal.org/node/1977206. */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:478
- public getDataType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:509
- public isList() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:522
- public getClass() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:529
- public getConstraints() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:539
- public getConstraint($constraint_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:546
- public getItemDefinition() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:554
- public getConfig($bundle) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:578
- public setConstraints(array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:585
- public addConstraint($constraint_name, $options = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:593
- public setPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:601
- public addPropertyConstraints($name, array $constraints) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:614
- public isInternal() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Field\FieldConfigBase Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:629
- public getOriginalId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:127
- public setOriginalId($id) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:134
- public isNew() Overrides EntityBase::isNew().
/** * Overrides EntityBase::isNew(). * * EntityInterface::enforceIsNew() is only supported for newly created * configuration entities but has no effect after saving, since each * configuration entity is unique. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:151
- public get($property_name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:158
- public set($property_name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:166
- public enable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:184
- public disable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:192
- public setStatus($status) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:200
- public status() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:208
- public setUninstalling($uninstalling) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:215
- public isUninstalling() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:222
- public createDuplicate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:229
- public toArray() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:254
- protected getTypedConfig(): \Drupal\Core\Config\TypedConfigManagerInterface Gets the typed config manager.
/** * Gets the typed config manager. * * @return \Drupal\Core\Config\TypedConfigManagerInterface * The typed configuration plugin manager. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:290
- public toUrl($rel = null, array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:408
- public getCacheTagsToInvalidate() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:417
- protected addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency().
/** * Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). * * Note that this function should only be called from implementations of * \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), * as dependencies are recalculated during every entity save. * * @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:432
- public getDependencies() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:446
- public getConfigDependencyName() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:460
- public getConfigTarget() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:467
- protected invalidateTagsOnSave($update) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the entity's cache tag; the config system * already invalidates it. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:509
- public setThirdPartySetting($module, $key, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:531
- public getThirdPartySetting($module, $key, $default = null) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:539
- public getThirdPartySettings($module) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:551
- public unsetThirdPartySetting($module, $key) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:558
- public getThirdPartyProviders() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:571
- public isInstallable() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:612
- public trustData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:619
- public hasTrustedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:627
- public save() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:634
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public uuid() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:129
- public enforceIsNew($value = true) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public bundle() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:159
- public label() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:166
- public hasLinkTemplate($rel) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- public uriRelationships() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:337
- public language() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:351
- public delete() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public referencedEntities() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:466
- public getCacheContexts() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTags() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- public getTypedData() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getOriginal(): ?static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public __get($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:711
- public __set($name, $value) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:722
- public __isset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:734
- public __unset($name) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:745
- public addCacheableDependency($other_object) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected getPluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance): array Calculates and returns dependencies of a specific plugin instance.
/** * Calculates and returns dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. * * @return array * An array of dependencies keyed by the type of dependency. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:33
- protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance) Calculates and adds dependencies of a specific plugin instance.
/** * Calculates and adds dependencies of a specific plugin instance. * * Dependencies are added for the module that provides the plugin, as well * as any dependencies declared by the instance's calculateDependencies() * method, if it implements * \Drupal\Component\Plugin\DependentPluginInterface. * * @param \Drupal\Component\Plugin\PluginInspectionInterface $instance * The plugin instance. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:88
- protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Wraps the module handler.
/** * Wraps the module handler. * * @return \Drupal\Core\Extension\ModuleHandlerInterface * The module handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:98
- protected themeHandler(): \Drupal\Core\Extension\ThemeHandlerInterface Wraps the theme handler.
/** * Wraps the theme handler. * * @return \Drupal\Core\Extension\ThemeHandlerInterface * The theme handler. */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:108
- protected addDependencyTrait($type, $name): $this Adds a dependency.
/** * Adds a dependency. * * @param string $type * Type of dependency being added: 'module', 'theme', 'config', 'content'. * @param string $name * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'config' or 'content', the result of * EntityInterface::getConfigDependencyName(). * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- protected addDependencies(array $dependencies) Adds multiple dependencies.
/** * Adds multiple dependencies. * * @param array $dependencies * An array of dependencies keyed by the type of dependency. One example: * @code * [ * 'module' => [ * 'node', * 'field', * 'image', * ], * ]; * @endcode * * @see \Drupal\Core\Entity\DependencyTrait::addDependency */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- public setSyncing($syncing) {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public static Drupal\field\Entity\FieldConfig::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:211
- public static Drupal\field\Entity\FieldConfig::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:237
- public static Drupal\field\Entity\FieldConfig::loadByName($entity_type_id, $bundle, $field_name): \Drupal\field\FieldConfigInterface|null Loads a field config entity based on the entity type and field name.
/** * Loads a field config entity based on the entity type and field name. * * @param string $entity_type_id * ID of the entity type. * @param string $bundle * Bundle name. * @param string $field_name * Name of the field. * * @return \Drupal\field\FieldConfigInterface|null * The field config entity if one exists for the provided field * name, otherwise NULL. */ Defined in <drupal>/core/modules/field/src/Entity/FieldConfig.php:379
- public static Drupal\Core\Field\FieldConfigBase::createFromItemType($item_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:491
- public static Drupal\Core\Field\FieldConfigBase::createFromDataType($type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:500
- public static Drupal\Core\Config\Entity\ConfigEntityBase::sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b) Callback for uasort() to sort configuration entities by weight and label.
/** * Callback for uasort() to sort configuration entities by weight and label. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) {@inheritdoc}
/** * {@inheritdoc} * * Override to never invalidate the individual entities' cache tags; the * config system already invalidates them. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:519
- protected static Drupal\Core\Config\Entity\ConfigEntityBase::getConfigManager(): \Drupal\Core\Config\ConfigManager Gets the configuration manager.
/** * Gets the configuration manager. * * @return \Drupal\Core\Config\ConfigManager * The configuration manager. */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:605
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Field\FieldConfigBase::normalizeValue(&$value, $main_property_name): array Ensure a field value is transformed into a format keyed by delta.
/** * Ensure a field value is transformed into a format keyed by delta. * * @param mixed $value * The raw field value to normalize. * @param string|null $main_property_name * The main field property name. * * @return array * A field value normalized into a format keyed by delta. */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldInputValueNormalizerTrait.php:26
- public static Drupal\Core\Field\FieldConfigBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $fields) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Field/FieldConfigBase.php:295
- public static Drupal\Core\Config\Entity\ConfigEntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:578
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- protected languages -> array (6)
- es => Drupal\Core\Language\Language#2765 (5)
- Properties (5)
- Methods (7)
- Static methods (2)
- Static properties (1)
- Class constants (15)
- protected name -> string (7) "Spanish"
- protected id -> string (2) "es"
- protected direction -> string (3) "ltr"
- protected weight -> integer 0
- protected locked -> boolean false
- public __construct(array $values = array()) Constructs a new class instance.
/** * Constructs a new class instance. * * @param array $values * An array of property values, keyed by property name, used to construct * the language. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:77
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:101
- public getId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:108
- public getDirection() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:115
- public getWeight() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:122
- public isDefault() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:129
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:136
- public static Drupal\Core\Language\Language::sort(&$languages) Sort language objects.
/** * Sort language objects. * * @param \Drupal\Core\Language\LanguageInterface[] $languages * The array of language objects keyed by langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:146
- protected static Drupal\Core\Language\Language::getDefaultLangcode(): string Gets the default langcode.
/** * Gets the default langcode. * * @return string * The current default langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:173
- public static Drupal\Core\Language\Language::$defaultValues :: array (5)
- id => string (2) "en"\Drupal\Core\Language\Language::$defaultValues['id']
- name => string (7) "English"\Drupal\Core\Language\Language::$defaultValues['name']
- direction => string (3) "ltr"\Drupal\Core\Language\Language::$defaultValues['direction']
- weight => integer 0\Drupal\Core\Language\Language::$defaultValues['weight']
- locked => boolean false\Drupal\Core\Language\Language::$defaultValues['locked']
- id => string (2) "en"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SYSTEM :: string (6) "system"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_SPECIFIED :: string (3) "und"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT :: string (9) "x-default"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SITE_DEFAULT :: string (12) "site_default"
- public const Drupal\Core\Language\LanguageInterface::VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
- public const Drupal\Core\Language\LanguageInterface::STATE_CONFIGURABLE :: integer 1
- public const Drupal\Core\Language\LanguageInterface::STATE_LOCKED :: integer 2
- public const Drupal\Core\Language\LanguageInterface::STATE_ALL :: integer 3
- public const Drupal\Core\Language\LanguageInterface::STATE_SITE_DEFAULT :: integer 4
- public const Drupal\Core\Language\LanguageInterface::TYPE_CONTENT :: string (16) "language_content"
- public const Drupal\Core\Language\LanguageInterface::TYPE_INTERFACE :: string (18) "language_interface"
- public const Drupal\Core\Language\LanguageInterface::TYPE_URL :: string (12) "language_url"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_LTR :: string (3) "ltr"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_RTL :: string (3) "rtl"
- ca => Drupal\Core\Language\Language#2763 (5)
- Properties (5)
- Methods (7)
- Static methods (2)
- Static properties (1)
- Class constants (15)
- protected name -> string (7) "Catalan"
- protected id -> string (2) "ca"
- protected direction -> string (3) "ltr"
- protected weight -> integer 1
- protected locked -> boolean false
- public __construct(array $values = array()) Constructs a new class instance.
/** * Constructs a new class instance. * * @param array $values * An array of property values, keyed by property name, used to construct * the language. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:77
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:101
- public getId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:108
- public getDirection() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:115
- public getWeight() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:122
- public isDefault() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:129
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:136
- public static Drupal\Core\Language\Language::sort(&$languages) Sort language objects.
/** * Sort language objects. * * @param \Drupal\Core\Language\LanguageInterface[] $languages * The array of language objects keyed by langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:146
- protected static Drupal\Core\Language\Language::getDefaultLangcode(): string Gets the default langcode.
/** * Gets the default langcode. * * @return string * The current default langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:173
- public static Drupal\Core\Language\Language::$defaultValues :: array (5)
- id => string (2) "en"\Drupal\Core\Language\Language::$defaultValues['id']
- name => string (7) "English"\Drupal\Core\Language\Language::$defaultValues['name']
- direction => string (3) "ltr"\Drupal\Core\Language\Language::$defaultValues['direction']
- weight => integer 0\Drupal\Core\Language\Language::$defaultValues['weight']
- locked => boolean false\Drupal\Core\Language\Language::$defaultValues['locked']
- id => string (2) "en"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SYSTEM :: string (6) "system"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_SPECIFIED :: string (3) "und"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT :: string (9) "x-default"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SITE_DEFAULT :: string (12) "site_default"
- public const Drupal\Core\Language\LanguageInterface::VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
- public const Drupal\Core\Language\LanguageInterface::STATE_CONFIGURABLE :: integer 1
- public const Drupal\Core\Language\LanguageInterface::STATE_LOCKED :: integer 2
- public const Drupal\Core\Language\LanguageInterface::STATE_ALL :: integer 3
- public const Drupal\Core\Language\LanguageInterface::STATE_SITE_DEFAULT :: integer 4
- public const Drupal\Core\Language\LanguageInterface::TYPE_CONTENT :: string (16) "language_content"
- public const Drupal\Core\Language\LanguageInterface::TYPE_INTERFACE :: string (18) "language_interface"
- public const Drupal\Core\Language\LanguageInterface::TYPE_URL :: string (12) "language_url"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_LTR :: string (3) "ltr"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_RTL :: string (3) "rtl"
- fr => Drupal\Core\Language\Language#2766 (5)
- Properties (5)
- Methods (7)
- Static methods (2)
- Static properties (1)
- Class constants (15)
- protected name -> string (6) "French"
- protected id -> string (2) "fr"
- protected direction -> string (3) "ltr"
- protected weight -> integer 2
- protected locked -> boolean false
- public __construct(array $values = array()) Constructs a new class instance.
/** * Constructs a new class instance. * * @param array $values * An array of property values, keyed by property name, used to construct * the language. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:77
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:101
- public getId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:108
- public getDirection() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:115
- public getWeight() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:122
- public isDefault() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:129
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:136
- public static Drupal\Core\Language\Language::sort(&$languages) Sort language objects.
/** * Sort language objects. * * @param \Drupal\Core\Language\LanguageInterface[] $languages * The array of language objects keyed by langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:146
- protected static Drupal\Core\Language\Language::getDefaultLangcode(): string Gets the default langcode.
/** * Gets the default langcode. * * @return string * The current default langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:173
- public static Drupal\Core\Language\Language::$defaultValues :: array (5)
- id => string (2) "en"\Drupal\Core\Language\Language::$defaultValues['id']
- name => string (7) "English"\Drupal\Core\Language\Language::$defaultValues['name']
- direction => string (3) "ltr"\Drupal\Core\Language\Language::$defaultValues['direction']
- weight => integer 0\Drupal\Core\Language\Language::$defaultValues['weight']
- locked => boolean false\Drupal\Core\Language\Language::$defaultValues['locked']
- id => string (2) "en"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SYSTEM :: string (6) "system"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_SPECIFIED :: string (3) "und"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT :: string (9) "x-default"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SITE_DEFAULT :: string (12) "site_default"
- public const Drupal\Core\Language\LanguageInterface::VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
- public const Drupal\Core\Language\LanguageInterface::STATE_CONFIGURABLE :: integer 1
- public const Drupal\Core\Language\LanguageInterface::STATE_LOCKED :: integer 2
- public const Drupal\Core\Language\LanguageInterface::STATE_ALL :: integer 3
- public const Drupal\Core\Language\LanguageInterface::STATE_SITE_DEFAULT :: integer 4
- public const Drupal\Core\Language\LanguageInterface::TYPE_CONTENT :: string (16) "language_content"
- public const Drupal\Core\Language\LanguageInterface::TYPE_INTERFACE :: string (18) "language_interface"
- public const Drupal\Core\Language\LanguageInterface::TYPE_URL :: string (12) "language_url"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_LTR :: string (3) "ltr"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_RTL :: string (3) "rtl"
- en => Drupal\Core\Language\Language#2764 (5)
- Properties (5)
- Methods (7)
- Static methods (2)
- Static properties (1)
- Class constants (15)
- protected name -> string (7) "English"
- protected id -> string (2) "en"
- protected direction -> string (3) "ltr"
- protected weight -> integer 3
- protected locked -> boolean false
- public __construct(array $values = array()) Constructs a new class instance.
/** * Constructs a new class instance. * * @param array $values * An array of property values, keyed by property name, used to construct * the language. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:77
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:101
- public getId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:108
- public getDirection() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:115
- public getWeight() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:122
- public isDefault() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:129
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:136
- public static Drupal\Core\Language\Language::sort(&$languages) Sort language objects.
/** * Sort language objects. * * @param \Drupal\Core\Language\LanguageInterface[] $languages * The array of language objects keyed by langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:146
- protected static Drupal\Core\Language\Language::getDefaultLangcode(): string Gets the default langcode.
/** * Gets the default langcode. * * @return string * The current default langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:173
- public static Drupal\Core\Language\Language::$defaultValues :: array (5)
- id => string (2) "en"\Drupal\Core\Language\Language::$defaultValues['id']
- name => string (7) "English"\Drupal\Core\Language\Language::$defaultValues['name']
- direction => string (3) "ltr"\Drupal\Core\Language\Language::$defaultValues['direction']
- weight => integer 0\Drupal\Core\Language\Language::$defaultValues['weight']
- locked => boolean false\Drupal\Core\Language\Language::$defaultValues['locked']
- id => string (2) "en"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SYSTEM :: string (6) "system"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_SPECIFIED :: string (3) "und"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT :: string (9) "x-default"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SITE_DEFAULT :: string (12) "site_default"
- public const Drupal\Core\Language\LanguageInterface::VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
- public const Drupal\Core\Language\LanguageInterface::STATE_CONFIGURABLE :: integer 1
- public const Drupal\Core\Language\LanguageInterface::STATE_LOCKED :: integer 2
- public const Drupal\Core\Language\LanguageInterface::STATE_ALL :: integer 3
- public const Drupal\Core\Language\LanguageInterface::STATE_SITE_DEFAULT :: integer 4
- public const Drupal\Core\Language\LanguageInterface::TYPE_CONTENT :: string (16) "language_content"
- public const Drupal\Core\Language\LanguageInterface::TYPE_INTERFACE :: string (18) "language_interface"
- public const Drupal\Core\Language\LanguageInterface::TYPE_URL :: string (12) "language_url"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_LTR :: string (3) "ltr"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_RTL :: string (3) "rtl"
- und => Drupal\Core\Language\Language#2767 (5)
- Properties (5)
- Methods (7)
- Static methods (2)
- Static properties (1)
- Class constants (15)
- protected name -> string (15) "Sin especificar"
- protected id -> string (3) "und"
- protected direction -> string (3) "ltr"
- protected weight -> integer 4
- protected locked -> boolean true
- public __construct(array $values = array()) Constructs a new class instance.
/** * Constructs a new class instance. * * @param array $values * An array of property values, keyed by property name, used to construct * the language. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:77
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:101
- public getId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:108
- public getDirection() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:115
- public getWeight() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:122
- public isDefault() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:129
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:136
- public static Drupal\Core\Language\Language::sort(&$languages) Sort language objects.
/** * Sort language objects. * * @param \Drupal\Core\Language\LanguageInterface[] $languages * The array of language objects keyed by langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:146
- protected static Drupal\Core\Language\Language::getDefaultLangcode(): string Gets the default langcode.
/** * Gets the default langcode. * * @return string * The current default langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:173
- public static Drupal\Core\Language\Language::$defaultValues :: array (5)
- id => string (2) "en"\Drupal\Core\Language\Language::$defaultValues['id']
- name => string (7) "English"\Drupal\Core\Language\Language::$defaultValues['name']
- direction => string (3) "ltr"\Drupal\Core\Language\Language::$defaultValues['direction']
- weight => integer 0\Drupal\Core\Language\Language::$defaultValues['weight']
- locked => boolean false\Drupal\Core\Language\Language::$defaultValues['locked']
- id => string (2) "en"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SYSTEM :: string (6) "system"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_SPECIFIED :: string (3) "und"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT :: string (9) "x-default"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SITE_DEFAULT :: string (12) "site_default"
- public const Drupal\Core\Language\LanguageInterface::VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
- public const Drupal\Core\Language\LanguageInterface::STATE_CONFIGURABLE :: integer 1
- public const Drupal\Core\Language\LanguageInterface::STATE_LOCKED :: integer 2
- public const Drupal\Core\Language\LanguageInterface::STATE_ALL :: integer 3
- public const Drupal\Core\Language\LanguageInterface::STATE_SITE_DEFAULT :: integer 4
- public const Drupal\Core\Language\LanguageInterface::TYPE_CONTENT :: string (16) "language_content"
- public const Drupal\Core\Language\LanguageInterface::TYPE_INTERFACE :: string (18) "language_interface"
- public const Drupal\Core\Language\LanguageInterface::TYPE_URL :: string (12) "language_url"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_LTR :: string (3) "ltr"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_RTL :: string (3) "rtl"
- zxx => Drupal\Core\Language\Language#2758 (5)
- Properties (5)
- Methods (7)
- Static methods (2)
- Static properties (1)
- Class constants (15)
- protected name -> string (12) "No aplicable"
- protected id -> string (3) "zxx"
- protected direction -> string (3) "ltr"
- protected weight -> integer 5
- protected locked -> boolean true
- public __construct(array $values = array()) Constructs a new class instance.
/** * Constructs a new class instance. * * @param array $values * An array of property values, keyed by property name, used to construct * the language. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:77
- public getName() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:101
- public getId() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:108
- public getDirection() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:115
- public getWeight() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:122
- public isDefault() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:129
- public isLocked() {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:136
- public static Drupal\Core\Language\Language::sort(&$languages) Sort language objects.
/** * Sort language objects. * * @param \Drupal\Core\Language\LanguageInterface[] $languages * The array of language objects keyed by langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:146
- protected static Drupal\Core\Language\Language::getDefaultLangcode(): string Gets the default langcode.
/** * Gets the default langcode. * * @return string * The current default langcode. */ Defined in <drupal>/core/lib/Drupal/Core/Language/Language.php:173
- public static Drupal\Core\Language\Language::$defaultValues :: array (5)
- id => string (2) "en"\Drupal\Core\Language\Language::$defaultValues['id']
- name => string (7) "English"\Drupal\Core\Language\Language::$defaultValues['name']
- direction => string (3) "ltr"\Drupal\Core\Language\Language::$defaultValues['direction']
- weight => integer 0\Drupal\Core\Language\Language::$defaultValues['weight']
- locked => boolean false\Drupal\Core\Language\Language::$defaultValues['locked']
- id => string (2) "en"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SYSTEM :: string (6) "system"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_SPECIFIED :: string (3) "und"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_DEFAULT :: string (9) "x-default"
- public const Drupal\Core\Language\LanguageInterface::LANGCODE_SITE_DEFAULT :: string (12) "site_default"
- public const Drupal\Core\Language\LanguageInterface::VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
- public const Drupal\Core\Language\LanguageInterface::STATE_CONFIGURABLE :: integer 1
- public const Drupal\Core\Language\LanguageInterface::STATE_LOCKED :: integer 2
- public const Drupal\Core\Language\LanguageInterface::STATE_ALL :: integer 3
- public const Drupal\Core\Language\LanguageInterface::STATE_SITE_DEFAULT :: integer 4
- public const Drupal\Core\Language\LanguageInterface::TYPE_CONTENT :: string (16) "language_content"
- public const Drupal\Core\Language\LanguageInterface::TYPE_INTERFACE :: string (18) "language_interface"
- public const Drupal\Core\Language\LanguageInterface::TYPE_URL :: string (12) "language_url"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_LTR :: string (3) "ltr"
- public const Drupal\Core\Language\LanguageInterface::DIRECTION_RTL :: string (3) "rtl"
- protected langcodeKey -> string (8) "langcode"
- protected defaultLangcodeKey -> string (16) "default_langcode"
- protected activeLangcode -> string (9) "x-default"
- protected enforceDefaultTranslation -> null
- protected defaultLangcode -> string (2) "es"
- protected translations -> array (1)
- x-default => array (1)
- status => integer 1
- protected translationInitialize -> boolean false
- protected newRevision -> boolean false
- protected isDefaultRevision -> string (1) "1"
- protected entityKeys -> array (8)
- bundle => string (12) "pagina_libre"
- id => string (3) "519"
- revision => string (3) "531"
- uuid => string (36) "f1939408-dd2a-4826-bdbe-61651423f6f6"
- status => string (1) "1"
- published => string (1) "1"
- uid => string (1) "4"
- owner => string (1) "4"
- protected translatableEntityKeys -> array (4)
- label => array (1)
- x-default => string (9) "Servicios"
- langcode => array (1)
- x-default => string (2) "es"
- default_langcode => array (1)
- x-default => string (1) "1"
- revision_translation_affected => array (1)
- x-default => string (1) "1"
- protected validated -> boolean false
- protected validationRequired -> boolean false
- protected loadedRevisionId -> string (3) "531"
- protected revisionTranslationAffectedKey -> string (29) "revision_translation_affected"
- protected enforceRevisionTranslationAffected -> array (0)
- protected isSyncing -> boolean false
- public in_preview -> null$0->in_preview
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}$0->preSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:117
- public preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record) {@inheritdoc}$0->preSaveRevision()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:139
- public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}$0->postSave()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:154
- public getType() {@inheritdoc}$0->getType()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:204
- public access($operation = 'view', ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}$0->access()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:211
- public getTitle() {@inheritdoc}$0->getTitle()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:219
- public setTitle($title) {@inheritdoc}$0->setTitle()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:226
- public getCreatedTime() {@inheritdoc}$0->getCreatedTime()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:234
- public setCreatedTime($timestamp) {@inheritdoc}$0->setCreatedTime()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:241
- public isPromoted() {@inheritdoc}$0->isPromoted()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:249
- public setPromoted($promoted) {@inheritdoc}$0->setPromoted()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:256
- public isSticky() {@inheritdoc}$0->isSticky()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:264
- public setSticky($sticky) {@inheritdoc}$0->setSticky()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:271
- public __construct(array $values, $entity_type, $bundle = false, $translations = array()) {@inheritdoc}new \Drupal\node\Entity\Node()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:203
- protected getLanguages() {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:282
- public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}$0->postCreate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:298
- public setNewRevision($value = true) {@inheritdoc}$0->setNewRevision()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:305
- public getLoadedRevisionId() {@inheritdoc}$0->getLoadedRevisionId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:327
- public updateLoadedRevisionId() {@inheritdoc}$0->updateLoadedRevisionId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:334
- public isNewRevision() {@inheritdoc}$0->isNewRevision()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:342
- public isDefaultRevision($new_value = null) {@inheritdoc}$0->isDefaultRevision()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:349
- public wasDefaultRevision() {@inheritdoc}$0->wasDefaultRevision()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:362
- public isLatestRevision() {@inheritdoc}$0->isLatestRevision()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:377
- public isLatestTranslationAffectedRevision() {@inheritdoc}$0->isLatestTranslationAffectedRevision()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:387
- public isRevisionTranslationAffected() {@inheritdoc}$0->isRevisionTranslationAffected()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:397
- public setRevisionTranslationAffected($affected) {@inheritdoc}$0->setRevisionTranslationAffected()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:404
- public isRevisionTranslationAffectedEnforced() {@inheritdoc}$0->isRevisionTranslationAffectedEnforced()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:414
- public setRevisionTranslationAffectedEnforced($enforced) {@inheritdoc}$0->setRevisionTranslationAffectedEnforced()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:421
- public setDefaultTranslationEnforced(?bool $enforce_default_translation): static Set or clear an override of the isDefaultTranslation() result.$0->setDefaultTranslationEnforced()
/** * Set or clear an override of the isDefaultTranslation() result. * * @param bool|null $enforce_default_translation * If boolean value is passed, the value will override the result of * isDefaultTranslation() method. If NULL is passed, the default logic will * be used. * * @return $this */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:436
- public isDefaultTranslation() {@inheritdoc}$0->isDefaultTranslation()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:444
- public getRevisionId() {@inheritdoc}$0->getRevisionId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:454
- public isTranslatable() {@inheritdoc}$0->isTranslatable()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:461
- public validate() {@inheritdoc}$0->validate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:518
- public isValidationRequired() {@inheritdoc}$0->isValidationRequired()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:527
- public setValidationRequired($required) {@inheritdoc}$0->setValidationRequired()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:534
- protected clearTranslationCache() Clears entity translation object cache to remove stale references.
/** * Clears entity translation object cache to remove stale references. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:542
- public __sleep(): array {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:551
- public id() {@inheritdoc}$0->id()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:569
- public bundle() {@inheritdoc}$0->bundle()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:576
- public getBundleEntity(): ?Drupal\Core\Entity\EntityInterface {@inheritdoc}$0->getBundleEntity()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:583
- public uuid() {@inheritdoc}$0->uuid()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:594
- public hasField($field_name) {@inheritdoc}$0->hasField()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:601
- public get($field_name) {@inheritdoc}$0->get()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:608
- protected getTranslatedField($name, $langcode): \Drupal\Core\Field\FieldItemListInterface<\Drupal\Core\Field\FieldItemInterface> Gets a translated field.
/** * Gets a translated field. * * @return \Drupal\Core\Field\FieldItemListInterface<\Drupal\Core\Field\FieldItemInterface> * The translated field. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:621
- public set($name, $value, $notify = true) {@inheritdoc}$0->set()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:667
- public getFields($include_computed = true) {@inheritdoc}$0->getFields()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:678
- public getTranslatableFields($include_computed = true) {@inheritdoc}$0->getTranslatableFields()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:691
- public getIterator(): ArrayIterator Retrieves the iterator for the object.$0->getIterator()
/** * Retrieves the iterator for the object. * * @return \ArrayIterator<string, \Drupal\Core\Field\FieldItemListInterface<\Drupal\Core\Field\FieldItemInterface>> * The iterator. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:707
- public getFieldDefinition($name) {@inheritdoc}$0->getFieldDefinition()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:714
- public getFieldDefinitions() {@inheritdoc}$0->getFieldDefinitions()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:726
- public toArray() {@inheritdoc}$0->toArray()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:736
- public language() {@inheritdoc}$0->language()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:761
- protected setDefaultLangcode() Populates the local cache for the default language code.
/** * Populates the local cache for the default language code. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:783
- protected updateFieldLangcodes($langcode) Updates language for already instantiated fields.
/** * Updates language for already instantiated fields. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:816
- public onChange($name) {@inheritdoc}$0->onChange()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:827
- public getTranslation($langcode) {@inheritdoc}$0->getTranslation()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:893
- public getUntranslated() {@inheritdoc}$0->getUntranslated()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:928
- protected initializeTranslation($langcode): \Drupal\Core\Entity\EntityInterface Instantiates a translation object for an existing translation.
/** * Instantiates a translation object for an existing translation. * * The translated entity will be a clone of the current entity with the * specified $langcode. All translations share the same field data structures * to ensure that all of them deal with fresh data. * * @param string $langcode * The language code for the requested translation. * * @return \Drupal\Core\Entity\EntityInterface * The translation object. The content properties of the translation object * are stored as references to the main entity. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:946
- public hasTranslation($langcode) {@inheritdoc}$0->hasTranslation()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:980
- public isNewTranslation() {@inheritdoc}$0->isNewTranslation()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:990
- public addTranslation($langcode, array $values = array()) {@inheritdoc}$0->addTranslation()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:997
- public removeTranslation($langcode) {@inheritdoc}$0->removeTranslation()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1018
- public getTranslationStatus($langcode) {@inheritdoc}$0->getTranslationStatus()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1047
- public getTranslationLanguages($include_default = true) {@inheritdoc}$0->getTranslationLanguages()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1057
- public updateOriginalValues() Updates the original values with the interim changes.$0->updateOriginalValues()
/** * Updates the original values with the interim changes. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1074
- public & __get($name) Implements the magic method for getting object properties.
/** * Implements the magic method for getting object properties. * * @todo A lot of code still uses non-fields (e.g. $entity->content in view * builders) by reference. Clean that up. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1094
- public __set($name, $value) Implements the magic method for setting object properties.
/** * Implements the magic method for setting object properties. * * Uses default language always. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1126
- public __isset($name) Implements the magic method for isset().
/** * Implements the magic method for isset(). */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1163
- public __unset($name) Implements the magic method for unset().
/** * Implements the magic method for unset(). */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1175
- public createDuplicate() {@inheritdoc}$0->createDuplicate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1209
- public __clone() Magic method: Implements a deep clone.clone $0
/** * Magic method: Implements a deep clone. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1247
- public label() {@inheritdoc}$0->label()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1333
- public referencedEntities() {@inheritdoc}$0->referencedEntities()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1342
- protected getEntityKey($key): mixed Gets the value of the given entity key, if defined.
/** * Gets the value of the given entity key, if defined. * * @param string $key * Name of the entity key, for example id, revision or bundle. * * @return mixed * The value of the entity key, NULL if not defined. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1369
- protected getFieldsToSkipFromTranslationChangesCheck(): array Returns an array of field names to skip in ::hasTranslationChanges.
/** * Returns an array of field names to skip in ::hasTranslationChanges. * * @return array * An array of field names. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1471
- public hasTranslationChanges() {@inheritdoc}$0->hasTranslationChanges()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1482
- public isDefaultTranslationAffectedOnly() {@inheritdoc}$0->isDefaultTranslationAffectedOnly()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1544
- protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
/** * Gets the entity type manager. * * @return \Drupal\Core\Entity\EntityTypeManagerInterface * The entity type manager. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:85
- protected entityTypeBundleInfo(): \Drupal\Core\Entity\EntityTypeBundleInfoInterface Gets the entity type bundle info service.
/** * Gets the entity type bundle info service. * * @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface * The entity type bundle info service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:95
- protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
/** * Gets the language manager. * * @return \Drupal\Core\Language\LanguageManagerInterface * The language manager service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:105
- protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
/** * Gets the UUID generator. * * @return \Drupal\Component\Uuid\UuidInterface * The UUID service. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:115
- public isNew() {@inheritdoc}$0->isNew()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:136
- public enforceIsNew($value = true) {@inheritdoc}$0->enforceIsNew()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:143
- public getEntityTypeId() {@inheritdoc}$0->getEntityTypeId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:152
- public toUrl($rel = null, array $options = array()) {@inheritdoc}$0->toUrl()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:175
- public hasLinkTemplate($rel) {@inheritdoc}$0->hasLinkTemplate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:253
- protected linkTemplates(): array Gets an array link templates.
/** * Gets an array link templates. * * @return array * An array of link templates containing paths. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:264
- public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}$0->toLink()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:271
- protected urlRouteParameters($rel): array Gets an array of placeholders for this entity.
/** * Gets an array of placeholders for this entity. * * Individual entity classes may override this method to add additional * placeholders if desired. If so, they should be sure to replicate the * property caching logic. * * @param string $rel * The link relationship type, for example: canonical or edit-form. * * @return array * An array of URI placeholders. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:294
- public uriRelationships() {@inheritdoc}$0->uriRelationships()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:315
- public save() {@inheritdoc}$0->save()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:368
- public delete() {@inheritdoc}$0->delete()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:376
- public getEntityType() {@inheritdoc}$0->getEntityType()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:408
- public getCacheContexts() {@inheritdoc}$0->getCacheContexts()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:473
- protected getListCacheTagsToInvalidate(): string[] The list cache tags to invalidate for this entity.
/** * The list cache tags to invalidate for this entity. * * @return string[] * Set of list cache tags. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:483
- public getCacheTagsToInvalidate() {@inheritdoc}$0->getCacheTagsToInvalidate()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:497
- public getCacheTags() {@inheritdoc}$0->getCacheTags()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:507
- public getCacheMaxAge() {@inheritdoc}$0->getCacheMaxAge()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:517
- protected invalidateTagsOnSave($update) Invalidates an entity's cache tags upon save.
/** * Invalidates an entity's cache tags upon save. * * @param bool $update * TRUE if the entity has been updated, or FALSE if it has been inserted. */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:557
- public getOriginalId() {@inheritdoc}$0->getOriginalId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:599
- public setOriginalId($id) {@inheritdoc}$0->setOriginalId()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:607
- public getTypedData() {@inheritdoc}$0->getTypedData()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:628
- public getConfigDependencyKey() {@inheritdoc}$0->getConfigDependencyKey()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:673
- public getConfigDependencyName() {@inheritdoc}$0->getConfigDependencyName()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:680
- public getConfigTarget() {@inheritdoc}$0->getConfigTarget()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:687
- public getOriginal(): ?static {@inheritdoc}$0->getOriginal()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:696
- public setOriginal(?Drupal\Core\Entity\EntityInterface $original): static {@inheritdoc}$0->setOriginal()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:703
- public addCacheableDependency($other_object) {@inheritdoc}$0->addCacheableDependency()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- public addCacheContexts(array $cache_contexts) {@inheritdoc}$0->addCacheContexts()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:32
- public addCacheTags(array $cache_tags) {@inheritdoc}$0->addCacheTags()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:42
- public mergeCacheMaxAge($max_age) {@inheritdoc}$0->mergeCacheMaxAge()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:52
- protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability): $this Sets cacheability; useful for value object constructors.
/** * Sets cacheability; useful for value object constructors. * * @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability * The cacheability to set. * * @return $this */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- public traitSleep(): array {@inheritdoc}$0->traitSleep()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
- public __wakeup(): void {@inheritdoc}
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:73
- protected traitGetFieldsToSkipFromTranslationChangesCheck(Drupal\Core\Entity\ContentEntityInterface $entity): string[] Returns an array of field names to skip when checking for changes.
/** * Returns an array of field names to skip when checking for changes. * * @param \Drupal\Core\Entity\ContentEntityInterface $entity * A content entity object. * * @return string[] * An array of field names. */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php:21
- public setSyncing($syncing) {@inheritdoc}$0->setSyncing()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
- public isSyncing() {@inheritdoc}$0->isSyncing()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\ContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
- public getChangedTimeAcrossTranslations(): int Returns the timestamp of the last entity change across all translations.$0->getChangedTimeAcrossTranslations()
/** * Returns the timestamp of the last entity change across all translations. * * @return int * The timestamp of the last entity save operation across all * translations. */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:17
- public getChangedTime(): int|null Gets the timestamp of the last entity change for the current translation.$0->getChangedTime()
/** * Gets the timestamp of the last entity change for the current translation. * * @return int|null * The timestamp of the last entity save operation. Some entities allow a * NULL value indicating the changed time is unknown. */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:33
- public setChangedTime($timestamp): $this Sets the timestamp of the last entity change for the current translation.$0->setChangedTime()
/** * Sets the timestamp of the last entity change for the current translation. * * @param int $timestamp * The timestamp of the last entity save operation. * * @return $this */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:46
- public isPublished() {@inheritdoc}$0->isPublished()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:47
- public setPublished() {@inheritdoc}$0->setPublished()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:54
- public setUnpublished() {@inheritdoc}$0->setUnpublished()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:64
- public getRevisionCreationTime() {@inheritdoc}$0->getRevisionCreationTime()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:69
- public setRevisionCreationTime($timestamp) {@inheritdoc}$0->setRevisionCreationTime()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:76
- public getRevisionUser() Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser().$0->getRevisionUser()
/** * Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser(). */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:84
- public setRevisionUser(Drupal\user\UserInterface $account) Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().$0->setRevisionUser()
/** * Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser(). */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:91
- public getRevisionUserId() Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId().$0->getRevisionUserId()
/** * Implements \Drupal\Core\Entity\RevisionLogInterface::getRevisionUserId(). */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:99
- public setRevisionUserId($user_id) Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().$0->setRevisionUserId()
/** * Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId(). */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:106
- public getRevisionLogMessage() {@inheritdoc}$0->getRevisionLogMessage()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:114
- public setRevisionLogMessage($revision_log_message) {@inheritdoc}$0->setRevisionLogMessage()
/** * {@inheritdoc} */ Inherited from Drupal\Core\Entity\EditorialContentEntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:121
- public getOwnerId() {@inheritdoc}$0->getOwnerId()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/user/src/EntityOwnerTrait.php:48
- public setOwnerId($uid) {@inheritdoc}$0->setOwnerId()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/user/src/EntityOwnerTrait.php:55
- public getOwner() {@inheritdoc}$0->getOwner()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/user/src/EntityOwnerTrait.php:65
- public setOwner(Drupal\user\UserInterface $account) {@inheritdoc}$0->setOwner()
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/user/src/EntityOwnerTrait.php:73
- private Drupal\Core\Entity\EntityBase::getTypedDataClass(): string Returns the typed data class name for this entity.
/** * Returns the typed data class name for this entity. * * @return string * The string representing the typed data class name. * * @see \Drupal\Core\Entity\Plugin\DataType\EntityAdapter */ Inherited from Drupal\Core\Entity\EntityBase Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:644
- public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
- public static Drupal\node\Entity\Node::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:180
- public static Drupal\node\Entity\Node::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $nodes) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:196
- public static Drupal\node\Entity\Node::baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/modules/node/src/Entity/Node.php:279
- public static Drupal\Core\Entity\ContentEntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1192
- public static Drupal\Core\Entity\ContentEntityBase::bundleFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1461
- public static Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:435
- public static Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:460
- public static Drupal\Core\Entity\EntityBase::load($id) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:524
- public static Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:534
- protected static Drupal\Core\Entity\EntityBase::invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete.
/** * Invalidates an entity's cache tags upon delete. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityInterface[] $entities * An array of entities. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:582
- public static Drupal\Core\Entity\EditorialContentEntityBase::publishedBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type): \Drupal\Core\Field\BaseFieldDefinition[] Returns an array of base field definitions for publishing status.
/** * Returns an array of base field definitions for publishing status. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type to add the publishing status field to. * * @return \Drupal\Core\Field\BaseFieldDefinition[] * An array of base field definitions. * * @throws \Drupal\Core\Entity\Exception\UnsupportedEntityTypeDefinitionException * Thrown when the entity type does not implement EntityPublishedInterface * or if it does not have a "published" entity key. */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:27
- public static Drupal\Core\Entity\EditorialContentEntityBase::revisionLogBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type): \Drupal\Core\Field\FieldDefinitionInterface[] Provides revision-related base field definitions for an entity type.
/** * Provides revision-related base field definitions for an entity type. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. * * @return \Drupal\Core\Field\FieldDefinitionInterface[] * An array of base field definitions for the entity type, keyed by field * name. * * @see \Drupal\Core\Entity\FieldableEntityInterface::baseFieldDefinitions() */ Defined in <drupal>/core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php:28
- public static Drupal\node\Entity\Node::ownerBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type): \Drupal\Core\Field\BaseFieldDefinition[] Returns an array of base field definitions for entity owners.
/** * Returns an array of base field definitions for entity owners. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type to add the owner field to. * * @return \Drupal\Core\Field\BaseFieldDefinition[] * An array of base field definitions. * * @throws \Drupal\Core\Entity\Exception\UnsupportedEntityTypeDefinitionException * Thrown when the entity type does not implement EntityOwnerInterface or * if it does not have an "owner" entity key. */ Defined in <drupal>/core/modules/user/src/EntityOwnerTrait.php:28
- public static Drupal\node\Entity\Node::getDefaultEntityOwner(): mixed Default value callback for 'owner' base field.
/** * Default value callback for 'owner' base field. * * @return mixed * A default value for the owner field. */ Defined in <drupal>/core/modules/user/src/EntityOwnerTrait.php:86
- public static Drupal\Core\Entity\EditorialContentEntityBase::baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EditorialContentEntityBase.php:19
- public static Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:447
- public static Drupal\Core\Entity\EntityBase::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:453
- public static Drupal\Core\Entity\ContentEntityBase::baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1403
- public static Drupal\Core\Entity\EntityBase::create(array $values = array()) {@inheritdoc}
/** * {@inheritdoc} */ Defined in <drupal>/core/lib/Drupal/Core/Entity/EntityBase.php:544
- protected static Drupal\Core\Entity\ContentEntityBase::$fieldsToSkipFromTranslationChangesCheck :: array (0)
- public const Drupal\Core\TypedData\TranslationStatusInterface::TRANSLATION_REMOVED :: integer 0
- public const Drupal\Core\TypedData\TranslationStatusInterface::TRANSLATION_EXISTING :: integer 1
- public const Drupal\Core\TypedData\TranslationStatusInterface::TRANSLATION_CREATED :: integer 2
- public const Drupal\node\NodeInterface::NOT_PUBLISHED :: integer 0
- public const Drupal\node\NodeInterface::PUBLISHED :: integer 1
- public const Drupal\node\NodeInterface::NOT_PROMOTED :: integer 0
- public const Drupal\node\NodeInterface::PROMOTED :: integer 1
- public const Drupal\node\NodeInterface::NOT_STICKY :: integer 0
- public const Drupal\node\NodeInterface::STICKY :: integer 1
- ⇄Drupal\Core\Entity\FieldableEntityInterface Iterator Contents uninitialized Blacklistediterator_to_array($0, false)
- ⇄Drupal\Core\Entity\FieldableEntityInterface Iterator Contents uninitialized Blacklisted