array (6)
#commerce_product => Drupal\commerce_product\Entity\Product#1635 (30)
$0['#commerce_product']
  • Properties (30)
  • Available methods (148)
  • Static class properties (4)
  • protected entityTypeId -> string (16) "commerce_product"
    protected enforceIsNew -> null
    protected typedData -> null
    protected cacheContexts -> array (0)
    protected cacheTags -> array (0)
    protected cacheMaxAge -> integer -1
    protected _serviceIds -> array (0)
    protected _entityStorages -> array (0)
    protected values -> array (37)
    product_id => array (1)
    x-default => string (3) "132"
    type => array (1)
    x-default => string (5) "offer"
    uuid => array (1)
    x-default => string (36) "e7e2a70b-2be5-4f7e-9945-53aa032825dd"
    langcode => array (1)
    x-default => string (2) "en"
    status => array (1)
    x-default => string (1) "1"
    uid => array (1)
    x-default => string (2) "78"
    title => array (1)
    x-default => string (19) "Ethical Web Hosting"
    created => array (1)
    x-default => string (10) "1669383000"
    2022-11-25 13:30:00 UTC
    changed => array (1)
    x-default => string (10) "1768413743"
    2026-01-14 18:02:23 UTC
    default_langcode => array (1)
    x-default => string (1) "1"
    stores => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    variations => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    body => array (1)
    x-default => array (1)
    0 => array (3) Depth Limit
    field_contact_email => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_coupon_expiration_value => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_coupon_expires => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_coupon_expriation_unit => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_coupon_redemption => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_customer_purchases => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_customer_purchases_limit => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_customer_purchases_per_eve => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_customer_purchases_per_uni => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_customer_purchases_per_val => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_how_it_works => array (1)
    x-default => array (1)
    0 => array (2) Depth Limit
    field_list_publicly => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_logo => array (1)
    x-default => array (1)
    0 => array (5) Depth Limit
    field_merchant_terms => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_offer_merchant => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_offer_type => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_percentage => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_percentage_handler => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_price => array (1)
    x-default => array (1)
    0 => array (2) Depth Limit
    field_referrals => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_share_on_social => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_short_description => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_value_type => array (1)
    x-default => array (1)
    0 => array (1) Depth Limit
    field_web_page => array (1)
    x-default => array (1)
    0 => array (3) Depth Limit
    protected fields -> array (0)
    protected fieldDefinitions -> null
    protected languages -> array (3)
    en => Drupal\Core\Language\Language#114 (5)
    • Properties (5)
    • Available methods (9)
    • Static class properties (16)
    • protected name -> string (7) "English"
      protected id -> string (2) "en"
      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 <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getName() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getId() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getDirection() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getWeight() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      public static sort(&$languages) Sort language objects.
      \Drupal\Core\Language\Language::sort(&$languages)
      /**
      * Sort language objects.
      *
      * @param \Drupal\Core\Language\LanguageInterface[] $languages
      *   The array of language objects keyed by langcode.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      protected static getDefaultLangcode(): string Gets the default langcode.
      /**
      * Gets the default langcode.
      *
      * @return string
      *   The current default langcode.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public static $defaultValues :: array (5)
      \Drupal\Core\Language\Language::$defaultValues
      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']
      public const LANGCODE_SYSTEM :: string (6) "system"
      \Drupal\Core\Language\Language::LANGCODE_SYSTEM
      public const LANGCODE_NOT_SPECIFIED :: string (3) "und"
      \Drupal\Core\Language\Language::LANGCODE_NOT_SPECIFIED
      public const LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
      \Drupal\Core\Language\Language::LANGCODE_NOT_APPLICABLE
      public const LANGCODE_DEFAULT :: string (9) "x-default"
      \Drupal\Core\Language\Language::LANGCODE_DEFAULT
      public const LANGCODE_SITE_DEFAULT :: string (12) "site_default"
      \Drupal\Core\Language\Language::LANGCODE_SITE_DEFAULT
      public const VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      \Drupal\Core\Language\Language::VALID_LANGCODE_REGEX
      public const STATE_CONFIGURABLE :: integer 1
      \Drupal\Core\Language\Language::STATE_CONFIGURABLE
      public const STATE_LOCKED :: integer 2
      \Drupal\Core\Language\Language::STATE_LOCKED
      public const STATE_ALL :: integer 3
      \Drupal\Core\Language\Language::STATE_ALL
      public const STATE_SITE_DEFAULT :: integer 4
      \Drupal\Core\Language\Language::STATE_SITE_DEFAULT
      public const TYPE_CONTENT :: string (16) "language_content"
      \Drupal\Core\Language\Language::TYPE_CONTENT
      public const TYPE_INTERFACE :: string (18) "language_interface"
      \Drupal\Core\Language\Language::TYPE_INTERFACE
      public const TYPE_URL :: string (12) "language_url"
      \Drupal\Core\Language\Language::TYPE_URL
      public const DIRECTION_LTR :: string (3) "ltr"
      \Drupal\Core\Language\Language::DIRECTION_LTR
      public const DIRECTION_RTL :: string (3) "rtl"
      \Drupal\Core\Language\Language::DIRECTION_RTL
    und => Drupal\Core\Language\Language#1674 (5)
    • Properties (5)
    • Available methods (9)
    • Static class properties (16)
    • protected name -> Drupal\Core\StringTranslation\TranslatableMarkup#1675 (5)
      • Properties (5)
      • Available methods (14)
      • protected string -> string (13) "Not specified"
        protected arguments -> array (0)
        protected translatedMarkup -> null
        protected options -> array (0)
        protected stringTranslation -> null
      • public __toString(): string Implements the magic __toString() method.
        /**
        * Implements the magic __toString() method.
        */
        
        Defined in <ROOT>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
        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 <ROOT>/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 <ROOT>/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 <ROOT>/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 <ROOT>/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 <ROOT>/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 <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
        public __sleep() Magic __sleep() method to avoid serializing the string translator.
        /**
        * Magic __sleep() method to avoid serializing the string translator.
        */
        
        Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
        public count(): int Returns the string length.
        /**
        * Returns the string length.
        *
        * @return int
        *   The length of the string.
        */
        
        Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:228
        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 <ROOT>/core/lib/Drupal/Component/Render/FormattableMarkup.php:120
        protected _die() For test purposes, wrap die() in an overridable method.
        /**
        * For test purposes, wrap die() in an overridable method.
        */
        
        Defined in <ROOT>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
        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 <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
        protected static placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
        /**
        * Replaces placeholders in a string with values.
        *
        * @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.
        * @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.
        *   Null args[] values are deprecated in Drupal 9.5 and will fail in
        *   Drupal 11.0. The 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: When the placeholder replacement value is:
        *     - A string, the replaced value in the returned string will be sanitized
        *       using \Drupal\Component\Utility\Html::escape().
        *     - A MarkupInterface object, the replaced value in the returned string
        *       will not be sanitized.
        *     - A MarkupInterface object cast to a string, the replaced value in the
        *       returned string be forcibly sanitized using
        *       \Drupal\Component\Utility\Html::escape().
        *       @code
        *         $this->placeholderFormat('This will force HTML-escaping of the replacement value: @text', ['@text' => (string) $safe_string_interface_object));
        *       @endcode
        *     Use this placeholder as the default choice for anything displayed on
        *     the site, but not within HTML attributes, JavaScript, or CSS. Doing so
        *     is a security risk.
        *   - %variable: Use when the replacement value is to be wrapped in <em>
        *     tags.
        *     A call like:
        *     @code
        *       $string = "%output_text";
        *       $arguments = ['%output_text' => 'text output here.'];
        *       $this->placeholderFormat($string, $arguments);
        *     @endcode
        *     makes the following HTML code:
        *     @code
        *       <em class="placeholder">text output here.</em>
        *     @endcode
        *     As with @variable, do not use this within HTML attributes, JavaScript,
        *     or CSS. Doing so is a security risk.
        *   - :variable: 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 attribute value is always
        *     wrapped in quotes:
        *     @code
        *     // Secure (with quotes):
        *     $this->placeholderFormat('<a href=":url">@variable</a>', [':url' => $url, '@variable' => $variable]);
        *     // Insecure (without quotes):
        *     $this->placeholderFormat('<a href=:url>@variable</a>', [':url' => $url, '@variable' => $variable]);
        *     @endcode
        *     When ":variable" comes from arbitrary user input, the result is secure,
        *     but not guaranteed to be a valid URL (which means the resulting output
        *     could fail HTML validation). To guarantee a valid URL, use
        *     Url::fromUri($user_input)->toString() (which either throws an exception
        *     or returns a well-formed URL) before passing the result into a
        *     ":variable" placeholder.
        *
        * @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()
        */
        
        Inherited from Drupal\Component\Render\FormattableMarkup
        Defined in <ROOT>/core/lib/Drupal/Component/Render/FormattableMarkup.php:196
        protected static 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.
        */
        
        Inherited from Drupal\Component\Render\FormattableMarkup
        Defined in <ROOT>/core/lib/Drupal/Component/Render/FormattableMarkup.php:267
      protected id -> string (3) "und"
      protected direction -> string (3) "ltr"
      protected weight -> integer 1
      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 <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getName() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getId() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getDirection() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getWeight() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      public static sort(&$languages) Sort language objects.
      \Drupal\Core\Language\Language::sort(&$languages)
      /**
      * Sort language objects.
      *
      * @param \Drupal\Core\Language\LanguageInterface[] $languages
      *   The array of language objects keyed by langcode.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      protected static getDefaultLangcode(): string Gets the default langcode.
      /**
      * Gets the default langcode.
      *
      * @return string
      *   The current default langcode.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public static $defaultValues :: array (5)
      \Drupal\Core\Language\Language::$defaultValues
      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']
      public const LANGCODE_SYSTEM :: string (6) "system"
      \Drupal\Core\Language\Language::LANGCODE_SYSTEM
      public const LANGCODE_NOT_SPECIFIED :: string (3) "und"
      \Drupal\Core\Language\Language::LANGCODE_NOT_SPECIFIED
      public const LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
      \Drupal\Core\Language\Language::LANGCODE_NOT_APPLICABLE
      public const LANGCODE_DEFAULT :: string (9) "x-default"
      \Drupal\Core\Language\Language::LANGCODE_DEFAULT
      public const LANGCODE_SITE_DEFAULT :: string (12) "site_default"
      \Drupal\Core\Language\Language::LANGCODE_SITE_DEFAULT
      public const VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      \Drupal\Core\Language\Language::VALID_LANGCODE_REGEX
      public const STATE_CONFIGURABLE :: integer 1
      \Drupal\Core\Language\Language::STATE_CONFIGURABLE
      public const STATE_LOCKED :: integer 2
      \Drupal\Core\Language\Language::STATE_LOCKED
      public const STATE_ALL :: integer 3
      \Drupal\Core\Language\Language::STATE_ALL
      public const STATE_SITE_DEFAULT :: integer 4
      \Drupal\Core\Language\Language::STATE_SITE_DEFAULT
      public const TYPE_CONTENT :: string (16) "language_content"
      \Drupal\Core\Language\Language::TYPE_CONTENT
      public const TYPE_INTERFACE :: string (18) "language_interface"
      \Drupal\Core\Language\Language::TYPE_INTERFACE
      public const TYPE_URL :: string (12) "language_url"
      \Drupal\Core\Language\Language::TYPE_URL
      public const DIRECTION_LTR :: string (3) "ltr"
      \Drupal\Core\Language\Language::DIRECTION_LTR
      public const DIRECTION_RTL :: string (3) "rtl"
      \Drupal\Core\Language\Language::DIRECTION_RTL
    zxx => Drupal\Core\Language\Language#1678 (5)
    • Properties (5)
    • Available methods (9)
    • Static class properties (16)
    • protected name -> Drupal\Core\StringTranslation\TranslatableMarkup#1679 (5)
      • Properties (5)
      • Available methods (14)
      • protected string -> string (14) "Not applicable"
        protected arguments -> array (0)
        protected translatedMarkup -> null
        protected options -> array (0)
        protected stringTranslation -> null
      • public __toString(): string Implements the magic __toString() method.
        /**
        * Implements the magic __toString() method.
        */
        
        Defined in <ROOT>/core/lib/Drupal/Component/Utility/ToStringTrait.php:13
        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 <ROOT>/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 <ROOT>/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 <ROOT>/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 <ROOT>/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 <ROOT>/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 <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:188
        public __sleep() Magic __sleep() method to avoid serializing the string translator.
        /**
        * Magic __sleep() method to avoid serializing the string translator.
        */
        
        Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:203
        public count(): int Returns the string length.
        /**
        * Returns the string length.
        *
        * @return int
        *   The length of the string.
        */
        
        Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:228
        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 <ROOT>/core/lib/Drupal/Component/Render/FormattableMarkup.php:120
        protected _die() For test purposes, wrap die() in an overridable method.
        /**
        * For test purposes, wrap die() in an overridable method.
        */
        
        Defined in <ROOT>/core/lib/Drupal/Component/Utility/ToStringTrait.php:31
        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 <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php:213
        protected static placeholderFormat($string, array $args): string Replaces placeholders in a string with values.
        /**
        * Replaces placeholders in a string with values.
        *
        * @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.
        * @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.
        *   Null args[] values are deprecated in Drupal 9.5 and will fail in
        *   Drupal 11.0. The 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: When the placeholder replacement value is:
        *     - A string, the replaced value in the returned string will be sanitized
        *       using \Drupal\Component\Utility\Html::escape().
        *     - A MarkupInterface object, the replaced value in the returned string
        *       will not be sanitized.
        *     - A MarkupInterface object cast to a string, the replaced value in the
        *       returned string be forcibly sanitized using
        *       \Drupal\Component\Utility\Html::escape().
        *       @code
        *         $this->placeholderFormat('This will force HTML-escaping of the replacement value: @text', ['@text' => (string) $safe_string_interface_object));
        *       @endcode
        *     Use this placeholder as the default choice for anything displayed on
        *     the site, but not within HTML attributes, JavaScript, or CSS. Doing so
        *     is a security risk.
        *   - %variable: Use when the replacement value is to be wrapped in <em>
        *     tags.
        *     A call like:
        *     @code
        *       $string = "%output_text";
        *       $arguments = ['%output_text' => 'text output here.'];
        *       $this->placeholderFormat($string, $arguments);
        *     @endcode
        *     makes the following HTML code:
        *     @code
        *       <em class="placeholder">text output here.</em>
        *     @endcode
        *     As with @variable, do not use this within HTML attributes, JavaScript,
        *     or CSS. Doing so is a security risk.
        *   - :variable: 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 attribute value is always
        *     wrapped in quotes:
        *     @code
        *     // Secure (with quotes):
        *     $this->placeholderFormat('<a href=":url">@variable</a>', [':url' => $url, '@variable' => $variable]);
        *     // Insecure (without quotes):
        *     $this->placeholderFormat('<a href=:url>@variable</a>', [':url' => $url, '@variable' => $variable]);
        *     @endcode
        *     When ":variable" comes from arbitrary user input, the result is secure,
        *     but not guaranteed to be a valid URL (which means the resulting output
        *     could fail HTML validation). To guarantee a valid URL, use
        *     Url::fromUri($user_input)->toString() (which either throws an exception
        *     or returns a well-formed URL) before passing the result into a
        *     ":variable" placeholder.
        *
        * @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()
        */
        
        Inherited from Drupal\Component\Render\FormattableMarkup
        Defined in <ROOT>/core/lib/Drupal/Component/Render/FormattableMarkup.php:196
        protected static 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.
        */
        
        Inherited from Drupal\Component\Render\FormattableMarkup
        Defined in <ROOT>/core/lib/Drupal/Component/Render/FormattableMarkup.php:267
      protected id -> string (3) "zxx"
      protected direction -> string (3) "ltr"
      protected weight -> integer 2
      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 <ROOT>/core/lib/Drupal/Core/Language/Language.php:77
      public getName() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:101
      public getId() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:108
      public getDirection() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:115
      public getWeight() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:122
      public isDefault() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:129
      public isLocked() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:136
      public static sort(&$languages) Sort language objects.
      \Drupal\Core\Language\Language::sort(&$languages)
      /**
      * Sort language objects.
      *
      * @param \Drupal\Core\Language\LanguageInterface[] $languages
      *   The array of language objects keyed by langcode.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:146
      protected static getDefaultLangcode(): string Gets the default langcode.
      /**
      * Gets the default langcode.
      *
      * @return string
      *   The current default langcode.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/Language.php:173
    • public static $defaultValues :: array (5)
      \Drupal\Core\Language\Language::$defaultValues
      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']
      public const LANGCODE_SYSTEM :: string (6) "system"
      \Drupal\Core\Language\Language::LANGCODE_SYSTEM
      public const LANGCODE_NOT_SPECIFIED :: string (3) "und"
      \Drupal\Core\Language\Language::LANGCODE_NOT_SPECIFIED
      public const LANGCODE_NOT_APPLICABLE :: string (3) "zxx"
      \Drupal\Core\Language\Language::LANGCODE_NOT_APPLICABLE
      public const LANGCODE_DEFAULT :: string (9) "x-default"
      \Drupal\Core\Language\Language::LANGCODE_DEFAULT
      public const LANGCODE_SITE_DEFAULT :: string (12) "site_default"
      \Drupal\Core\Language\Language::LANGCODE_SITE_DEFAULT
      public const VALID_LANGCODE_REGEX :: string (33) "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
      \Drupal\Core\Language\Language::VALID_LANGCODE_REGEX
      public const STATE_CONFIGURABLE :: integer 1
      \Drupal\Core\Language\Language::STATE_CONFIGURABLE
      public const STATE_LOCKED :: integer 2
      \Drupal\Core\Language\Language::STATE_LOCKED
      public const STATE_ALL :: integer 3
      \Drupal\Core\Language\Language::STATE_ALL
      public const STATE_SITE_DEFAULT :: integer 4
      \Drupal\Core\Language\Language::STATE_SITE_DEFAULT
      public const TYPE_CONTENT :: string (16) "language_content"
      \Drupal\Core\Language\Language::TYPE_CONTENT
      public const TYPE_INTERFACE :: string (18) "language_interface"
      \Drupal\Core\Language\Language::TYPE_INTERFACE
      public const TYPE_URL :: string (12) "language_url"
      \Drupal\Core\Language\Language::TYPE_URL
      public const DIRECTION_LTR :: string (3) "ltr"
      \Drupal\Core\Language\Language::DIRECTION_LTR
      public const DIRECTION_RTL :: string (3) "rtl"
      \Drupal\Core\Language\Language::DIRECTION_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) "en"
    protected translations -> array (1)
    x-default => array (1)
    status => integer 1
    protected translationInitialize -> boolean false
    protected newRevision -> boolean false
    protected isDefaultRevision -> boolean true
    protected entityKeys -> array (3)
    bundle => string (5) "offer"
    id => string (3) "132"
    uuid => string (36) "e7e2a70b-2be5-4f7e-9945-53aa032825dd"
    protected translatableEntityKeys -> array (6)
    label => array (1)
    x-default => string (19) "Ethical Web Hosting"
    langcode => array (1)
    x-default => string (2) "en"
    published => array (1)
    x-default => string (1) "1"
    owner => array (1)
    x-default => string (2) "78"
    uid => array (1)
    x-default => string (2) "78"
    default_langcode => array (1)
    x-default => string (1) "1"
    protected validated -> boolean false
    protected validationRequired -> boolean false
    protected loadedRevisionId -> null
    protected revisionTranslationAffectedKey -> string (29) "revision_translation_affected"
    protected enforceRevisionTranslationAffected -> array (0)
    protected isSyncing -> boolean false
    protected defaultVariation -> null
  • public getChangedTimeAcrossTranslations(): int Returns the timestamp of the last entity change across all translations.
    $0['#commerce_product']->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.
    */
    
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:17
    public getOwner() {@inheritdoc}
    $0['#commerce_product']->getOwner()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/src/EntityOwnerTrait.php:18
    public getChangedTime(): int|null Gets the timestamp of the last entity change for the current translation.
    $0['#commerce_product']->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.
    */
    
    Defined in <ROOT>/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['#commerce_product']->setChangedTime($timestamp)
    /**
    * 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
    */
    
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityChangedTrait.php:46
    public isPublished() {@inheritdoc}
    $0['#commerce_product']->isPublished()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:47
    public getOwnerId() {@inheritdoc}
    $0['#commerce_product']->getOwnerId()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:48
    public setPublished() {@inheritdoc}
    $0['#commerce_product']->setPublished()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:54
    public setOwnerId($uid) {@inheritdoc}
    $0['#commerce_product']->setOwnerId($uid)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:55
    public setUnpublished() {@inheritdoc}
    $0['#commerce_product']->setUnpublished()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:64
    public setOwner(Drupal\user\UserInterface $account) {@inheritdoc}
    $0['#commerce_product']->setOwner(Drupal\user\UserInterface $account)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:73
    public getTitle() {@inheritdoc}
    $0['#commerce_product']->getTitle()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:99
    public setTitle($title) {@inheritdoc}
    $0['#commerce_product']->setTitle($title)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:106
    public getCreatedTime() {@inheritdoc}
    $0['#commerce_product']->getCreatedTime()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:114
    public setCreatedTime($timestamp) {@inheritdoc}
    $0['#commerce_product']->setCreatedTime($timestamp)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:121
    public getStores() {@inheritdoc}
    $0['#commerce_product']->getStores()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:129
    public setStores(array $stores) {@inheritdoc}
    $0['#commerce_product']->setStores(array $stores)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:136
    public getStoreIds() {@inheritdoc}
    $0['#commerce_product']->getStoreIds()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:144
    public setStoreIds(array $store_ids) {@inheritdoc}
    $0['#commerce_product']->setStoreIds(array $store_ids)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:155
    public getVariationIds() {@inheritdoc}
    $0['#commerce_product']->getVariationIds()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:163
    public getVariations() {@inheritdoc}
    $0['#commerce_product']->getVariations()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:174
    public setVariations(array $variations) {@inheritdoc}
    $0['#commerce_product']->setVariations(array $variations)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:181
    public hasVariations() {@inheritdoc}
    $0['#commerce_product']->hasVariations()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:189
    public addVariation(Drupal\commerce_product\Entity\ProductVariationInterface $variation) {@inheritdoc}
    $0['#commerce_product']->addVariation(Drupal\commerce_product\Entity\ProductVariationInterface $variation)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:196
    public removeVariation(Drupal\commerce_product\Entity\ProductVariationInterface $variation) {@inheritdoc}
    $0['#commerce_product']->removeVariation(Drupal\commerce_product\Entity\ProductVariationInterface $variation)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:206
    public hasVariation(Drupal\commerce_product\Entity\ProductVariationInterface $variation) {@inheritdoc}
    $0['#commerce_product']->hasVariation(Drupal\commerce_product\Entity\ProductVariationInterface $variation)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:217
    public getDefaultVariation() {@inheritdoc}
    $0['#commerce_product']->getDefaultVariation()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:237
    public preSave(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
    $0['#commerce_product']->preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:259
    public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true) {@inheritdoc}
    $0['#commerce_product']->postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:277
    public getCacheContexts() {@inheritdoc}
    $0['#commerce_product']->getCacheContexts()
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:293
    public getTranslatedReferencedEntities($field_name) {@inheritdoc}
    $0['#commerce_product']->getTranslatedReferencedEntities($field_name)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\commerce\Entity\CommerceContentEntityBase
    Defined in <ROOT>/modules/contrib/commerce/src/Entity/CommerceContentEntityBase.php:17
    public getTranslatedReferencedEntity($field_name) {@inheritdoc}
    $0['#commerce_product']->getTranslatedReferencedEntity($field_name)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\commerce\Entity\CommerceContentEntityBase
    Defined in <ROOT>/modules/contrib/commerce/src/Entity/CommerceContentEntityBase.php:25
    public setSyncing($syncing) {@inheritdoc}
    $0['#commerce_product']->setSyncing($syncing)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:22
    public isSyncing() {@inheritdoc}
    $0['#commerce_product']->isSyncing()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/SynchronizableEntityTrait.php:31
    public __construct(array $values, $entity_type, $bundle = false, $translations = array()) {@inheritdoc}
    new \Drupal\commerce_product\Entity\Product(array $values, $entity_type, $bundle = false, $translations = array())
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:201
    public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage) {@inheritdoc}
    $0['#commerce_product']->postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:296
    public setNewRevision($value = true) {@inheritdoc}
    $0['#commerce_product']->setNewRevision($value = true)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:303
    public getLoadedRevisionId() {@inheritdoc}
    $0['#commerce_product']->getLoadedRevisionId()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:325
    public updateLoadedRevisionId() {@inheritdoc}
    $0['#commerce_product']->updateLoadedRevisionId()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:332
    public isNewRevision() {@inheritdoc}
    $0['#commerce_product']->isNewRevision()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:340
    public isDefaultRevision($new_value = null) {@inheritdoc}
    $0['#commerce_product']->isDefaultRevision($new_value = null)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:347
    public wasDefaultRevision() {@inheritdoc}
    $0['#commerce_product']->wasDefaultRevision()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:360
    public isLatestRevision() {@inheritdoc}
    $0['#commerce_product']->isLatestRevision()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:375
    public isLatestTranslationAffectedRevision() {@inheritdoc}
    $0['#commerce_product']->isLatestTranslationAffectedRevision()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:385
    public isRevisionTranslationAffected() {@inheritdoc}
    $0['#commerce_product']->isRevisionTranslationAffected()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:395
    public setRevisionTranslationAffected($affected) {@inheritdoc}
    $0['#commerce_product']->setRevisionTranslationAffected($affected)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:402
    public isRevisionTranslationAffectedEnforced() {@inheritdoc}
    $0['#commerce_product']->isRevisionTranslationAffectedEnforced()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:412
    public setRevisionTranslationAffectedEnforced($enforced) {@inheritdoc}
    $0['#commerce_product']->setRevisionTranslationAffectedEnforced($enforced)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:419
    public setDefaultTranslationEnforced(?bool $enforce_default_translation): static Set or clear an override of the isDefaultTranslation() result.
    $0['#commerce_product']->setDefaultTranslationEnforced(?bool $enforce_default_translation)
    /**
    * 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 <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:434
    public isDefaultTranslation() {@inheritdoc}
    $0['#commerce_product']->isDefaultTranslation()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:442
    public getRevisionId() {@inheritdoc}
    $0['#commerce_product']->getRevisionId()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:452
    public isTranslatable() {@inheritdoc}
    $0['#commerce_product']->isTranslatable()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:459
    public preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record) {@inheritdoc}
    $0['#commerce_product']->preSaveRevision(Drupal\Core\Entity\EntityStorageInterface $storage, stdClass $record)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:485
    public validate() {@inheritdoc}
    $0['#commerce_product']->validate()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:516
    public isValidationRequired() {@inheritdoc}
    $0['#commerce_product']->isValidationRequired()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:525
    public setValidationRequired($required) {@inheritdoc}
    $0['#commerce_product']->setValidationRequired($required)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:532
    public __sleep() {@inheritdoc}
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:549
    public id() {@inheritdoc}
    $0['#commerce_product']->id()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:567
    public bundle() {@inheritdoc}
    $0['#commerce_product']->bundle()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:574
    public uuid() {@inheritdoc}
    $0['#commerce_product']->uuid()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:581
    public hasField($field_name) {@inheritdoc}
    $0['#commerce_product']->hasField($field_name)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:588
    public get($field_name) {@inheritdoc}
    $0['#commerce_product']->get($field_name)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:595
    public set($name, $value, $notify = true) {@inheritdoc}
    $0['#commerce_product']->set($name, $value, $notify = true)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:653
    public getFields($include_computed = true) {@inheritdoc}
    $0['#commerce_product']->getFields($include_computed = true)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:664
    public getTranslatableFields($include_computed = true) {@inheritdoc}
    $0['#commerce_product']->getTranslatableFields($include_computed = true)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:677
    public getIterator() {@inheritdoc}
    $0['#commerce_product']->getIterator()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:691
    public getFieldDefinition($name) {@inheritdoc}
    $0['#commerce_product']->getFieldDefinition($name)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:698
    public getFieldDefinitions() {@inheritdoc}
    $0['#commerce_product']->getFieldDefinitions()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:710
    public toArray() {@inheritdoc}
    $0['#commerce_product']->toArray()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:720
    public access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false) {@inheritdoc}
    $0['#commerce_product']->access($operation, ?Drupal\Core\Session\AccountInterface $account = null, $return_as_object = false)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:731
    public language() {@inheritdoc}
    $0['#commerce_product']->language()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:745
    public onChange($name) {@inheritdoc}
    $0['#commerce_product']->onChange($name)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:811
    public getTranslation($langcode) {@inheritdoc}
    $0['#commerce_product']->getTranslation($langcode)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:877
    public getUntranslated() {@inheritdoc}
    $0['#commerce_product']->getUntranslated()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:912
    public hasTranslation($langcode) {@inheritdoc}
    $0['#commerce_product']->hasTranslation($langcode)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:963
    public isNewTranslation() {@inheritdoc}
    $0['#commerce_product']->isNewTranslation()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:973
    public addTranslation($langcode, array $values = array()) {@inheritdoc}
    $0['#commerce_product']->addTranslation($langcode, array $values = array())
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:980
    public removeTranslation($langcode) {@inheritdoc}
    $0['#commerce_product']->removeTranslation($langcode)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1001
    public getTranslationStatus($langcode) {@inheritdoc}
    $0['#commerce_product']->getTranslationStatus($langcode)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1030
    public getTranslationLanguages($include_default = true) {@inheritdoc}
    $0['#commerce_product']->getTranslationLanguages($include_default = true)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1040
    public updateOriginalValues() Updates the original values with the interim changes.
    $0['#commerce_product']->updateOriginalValues()
    /**
    * Updates the original values with the interim changes.
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1057
    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 <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1077
    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 <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1104
    public __isset($name) Implements the magic method for isset().
    /**
    * Implements the magic method for isset().
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1138
    public __unset($name) Implements the magic method for unset().
    /**
    * Implements the magic method for unset().
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1147
    public createDuplicate() {@inheritdoc}
    $0['#commerce_product']->createDuplicate()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1178
    public __clone() Magic method: Implements a deep clone.
    clone $0['#commerce_product']
    /**
    * Magic method: Implements a deep clone.
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1211
    public label() {@inheritdoc}
    $0['#commerce_product']->label()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1297
    public referencedEntities() {@inheritdoc}
    $0['#commerce_product']->referencedEntities()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1306
    public hasTranslationChanges() {@inheritdoc}
    $0['#commerce_product']->hasTranslationChanges()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1446
    public isDefaultTranslationAffectedOnly() {@inheritdoc}
    $0['#commerce_product']->isDefaultTranslationAffectedOnly()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1505
    public addCacheableDependency($other_object) {@inheritdoc}
    $0['#commerce_product']->addCacheableDependency($other_object)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
    public addCacheContexts(array $cache_contexts) {@inheritdoc}
    $0['#commerce_product']->addCacheContexts(array $cache_contexts)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
    public traitSleep() {@inheritdoc}
    $0['#commerce_product']->traitSleep()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
    public addCacheTags(array $cache_tags) {@inheritdoc}
    $0['#commerce_product']->addCacheTags(array $cache_tags)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
    public mergeCacheMaxAge($max_age) {@inheritdoc}
    $0['#commerce_product']->mergeCacheMaxAge($max_age)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
    public __wakeup() {@inheritdoc}
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:74
    public isNew() {@inheritdoc}
    $0['#commerce_product']->isNew()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:120
    public enforceIsNew($value = true) {@inheritdoc}
    $0['#commerce_product']->enforceIsNew($value = true)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:127
    public getEntityTypeId() {@inheritdoc}
    $0['#commerce_product']->getEntityTypeId()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:136
    public toUrl($rel = null, array $options = array()) {@inheritdoc}
    $0['#commerce_product']->toUrl($rel = null, array $options = array())
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:159
    public hasLinkTemplate($rel) {@inheritdoc}
    $0['#commerce_product']->hasLinkTemplate($rel)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:237
    public toLink($text = null, $rel = 'canonical', array $options = array()) {@inheritdoc}
    $0['#commerce_product']->toLink($text = null, $rel = 'canonical', array $options = array())
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:255
    public uriRelationships() {@inheritdoc}
    $0['#commerce_product']->uriRelationships()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:299
    public save() {@inheritdoc}
    $0['#commerce_product']->save()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:352
    public delete() {@inheritdoc}
    $0['#commerce_product']->delete()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:360
    public getEntityType() {@inheritdoc}
    $0['#commerce_product']->getEntityType()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:386
    public getCacheTagsToInvalidate() {@inheritdoc}
    $0['#commerce_product']->getCacheTagsToInvalidate()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:472
    public getCacheTags() {@inheritdoc}
    $0['#commerce_product']->getCacheTags()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:482
    public getCacheMaxAge() {@inheritdoc}
    $0['#commerce_product']->getCacheMaxAge()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:492
    public getOriginalId() {@inheritdoc}
    $0['#commerce_product']->getOriginalId()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:574
    public setOriginalId($id) {@inheritdoc}
    $0['#commerce_product']->setOriginalId($id)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:582
    public getTypedData() {@inheritdoc}
    $0['#commerce_product']->getTypedData()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:603
    public getConfigDependencyKey() {@inheritdoc}
    $0['#commerce_product']->getConfigDependencyKey()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:648
    public getConfigDependencyName() {@inheritdoc}
    $0['#commerce_product']->getConfigDependencyName()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:655
    public getConfigTarget() {@inheritdoc}
    $0['#commerce_product']->getConfigTarget()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:662
    protected getVariationIndex(Drupal\commerce_product\Entity\ProductVariationInterface $variation): int|bool Gets the index of the given variation.
    /**
    * Gets the index of the given variation.
    *
    * @param \Drupal\commerce_product\Entity\ProductVariationInterface $variation
    *   The variation.
    *
    * @return int|bool
    *   The index of the given variation, or FALSE if not found.
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:230
    protected ensureTranslations(array $entities): \Drupal\Core\Entity\ContentEntityInterface[] Ensures entities are in the current entity's language, if possible.
    /**
    * Ensures entities are in the current entity's language, if possible.
    *
    * @param \Drupal\Core\Entity\ContentEntityInterface[] $entities
    *   The entities to process.
    *
    * @return \Drupal\Core\Entity\ContentEntityInterface[]
    *   The processed entities.
    */
    
    Inherited from Drupal\commerce\Entity\CommerceContentEntityBase
    Defined in <ROOT>/modules/contrib/commerce/src/Entity/CommerceContentEntityBase.php:40
    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 <ROOT>/core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php:21
    protected getLanguages() {@inheritdoc}
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:280
    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 <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:540
    protected getTranslatedField($name, $langcode): \Drupal\Core\Field\FieldItemListInterface Gets a translated field.
    /**
    * Gets a translated field.
    *
    * @return \Drupal\Core\Field\FieldItemListInterface
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:607
    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 <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:767
    protected updateFieldLangcodes($langcode) Updates language for already instantiated fields.
    /**
    * Updates language for already instantiated fields.
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:800
    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 <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:930
    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 <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1333
    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 <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1435
    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 <ROOT>/core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
    protected entityTypeManager(): \Drupal\Core\Entity\EntityTypeManagerInterface Gets the entity type manager.
    /**
    * Gets the entity type manager.
    *
    * @return \Drupal\Core\Entity\EntityTypeManagerInterface
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:72
    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
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:81
    protected languageManager(): \Drupal\Core\Language\LanguageManagerInterface Gets the language manager.
    /**
    * Gets the language manager.
    *
    * @return \Drupal\Core\Language\LanguageManagerInterface
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:90
    protected uuidGenerator(): \Drupal\Component\Uuid\UuidInterface Gets the UUID generator.
    /**
    * Gets the UUID generator.
    *
    * @return \Drupal\Component\Uuid\UuidInterface
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:99
    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 <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:248
    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 <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:278
    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 <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:461
    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 <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:532
    public static publishedBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type): \Drupal\Core\Field\BaseFieldDefinition[] Returns an array of base field definitions for publishing status.
    \Drupal\commerce_product\Entity\Product::publishedBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    /**
    * 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 <ROOT>/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php:27
    public static ownerBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type): \Drupal\Core\Field\BaseFieldDefinition[] Returns an array of base field definitions for entity owners.
    \Drupal\commerce_product\Entity\Product::ownerBaseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    /**
    * 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 <ROOT>/core/modules/user/src/EntityOwnerTrait.php:28
    public static getDefaultEntityOwner(): mixed Default value callback for 'owner' base field.
    \Drupal\commerce_product\Entity\Product::getDefaultEntityOwner()
    /**
    * Default value callback for 'owner' base field.
    *
    * @return mixed
    *   A default value for the owner field.
    */
    
    Defined in <ROOT>/core/modules/user/src/EntityOwnerTrait.php:86
    public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
    \Drupal\commerce_product\Entity\Product::postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:300
    public static baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type) {@inheritdoc}
    \Drupal\commerce_product\Entity\Product::baseFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:318
    public static bundleFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) {@inheritdoc}
    \Drupal\commerce_product\Entity\Product::bundleFieldDefinitions(Drupal\Core\Entity\EntityTypeInterface $entity_type, $bundle, array $base_field_definitions)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/Entity/Product.php:437
    public static create(array $values = array()) {@inheritdoc}
    \Drupal\Core\Entity\ContentEntityBase::create(array $values = array())
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\ContentEntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityBase.php:1161
    public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values) {@inheritdoc}
    \Drupal\Core\Entity\EntityBase::preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:413
    public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities) {@inheritdoc}
    \Drupal\Core\Entity\EntityBase::preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:425
    public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities) {@inheritdoc}
    \Drupal\Core\Entity\EntityBase::postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:438
    public static load($id) {@inheritdoc}
    \Drupal\Core\Entity\EntityBase::load($id)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:499
    public static loadMultiple(?array $ids = null) {@inheritdoc}
    \Drupal\Core\Entity\EntityBase::loadMultiple(?array $ids = null)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:509
    protected static 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.
    */
    
    Inherited from Drupal\Core\Entity\EntityBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityBase.php:557
  • protected static $fieldsToSkipFromTranslationChangesCheck :: array (0)
    public const TRANSLATION_REMOVED :: integer 0
    \Drupal\commerce_product\Entity\Product::TRANSLATION_REMOVED
    public const TRANSLATION_EXISTING :: integer 1
    \Drupal\commerce_product\Entity\Product::TRANSLATION_EXISTING
    public const TRANSLATION_CREATED :: integer 2
    \Drupal\commerce_product\Entity\Product::TRANSLATION_CREATED
#view_mode => string (4) "full"
$0['#view_mode']
#cache => array (3)
$0['#cache']
tags => array (2)
$0['#cache']['tags']
0 => string (21) "commerce_product_view"
$0['#cache']['tags'][0]
1 => string (20) "commerce_product:132"
$0['#cache']['tags'][1]
contexts => array (2)
$0['#cache']['contexts']
0 => string (16) "url.query_args:v"
$0['#cache']['contexts'][0]
1 => string (5) "store"
$0['#cache']['contexts'][1]
max-age => integer -1
$0['#cache']['max-age']
#theme => string (16) "commerce_product"
$0['#theme']
#weight => integer 0
$0['#weight']
#pre_render => array (1)
$0['#pre_render']
0 => array (2)
$0['#pre_render'][0]
0 => Drupal\commerce_product\ProductViewBuilder#1673 (14)
$0['#pre_render'][0][0]
  • Properties (14)
  • Available methods (26)
  • Static class properties (3)
  • protected moduleHandler -> Drupal\Core\Extension\ModuleHandler#116 (11)
    • Properties (11)
    • Available methods (34)
    • protected loadedFiles -> array (151) Depth Limit
      protected moduleList -> array (151) Depth Limit
      protected loaded -> boolean true
      protected implementations -> array (714) Depth Limit
      protected verified -> array (7) Depth Limit
      protected hookInfo -> null
      protected cacheBackend -> Drupal\Core\Cache\DatabaseBackend#117 (6) Depth Limit
      protected cacheNeedsWriting -> boolean false
      protected alterFunctions -> array (2) Depth Limit
      protected root -> string (56) "/var/www/vhosts/creativelocalsolutions.co.uk/treedev/web"
      • Directory (4KB)
      • drwxr-xr-x 10002 1002 4KB Jan 28 17:12 /var/www/vhosts/creativelocalsolutions.co.uk/treedev/web
        
      protected includeFileKeys -> array (0)
    • public __construct($root, array $module_list, Drupal\Core\Cache\CacheBackendInterface $cache_backend) Constructs a ModuleHandler object.
      /**
      * Constructs a ModuleHandler object.
      *
      * @param string $root
      *   The app root.
      * @param array $module_list
      *   An associative array whose keys are the names of installed modules and
      *   whose values are Extension class parameters. This is normally the
      *   %container.modules% parameter being set up by DrupalKernel.
      * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
      *   Cache backend for storing module hook implementation information.
      *
      * @see \Drupal\Core\DrupalKernel
      * @see \Drupal\Core\CoreServiceProvider
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:110
      public load($name) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:122
      public loadAll() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:138
      public reload() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:150
      public isLoaded() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:158
      public getModuleList() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:165
      public getModule($name) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:172
      public setModuleList(array $module_list = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:182
      public addModule($name, $path) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:192
      public addProfile($name, $path) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:199
      public buildModuleDependencies(array $modules) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:223
      public moduleExists($module) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:246
      public loadAllIncludes($type, $name = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:253
      public loadInclude($module, $type, $name = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:262
      public getHookInfo() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:290
      public writeCache() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:327
      public destruct() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:337
      public resetImplementations() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:344
      public hasImplementations(string $hook, $modules = null): bool {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:366
      public invokeAllWith(string $hook, callable $callback): void {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:392
      public invoke($module, $hook, array $args = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:402
      public invokeAll($hook, array $args = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:413
      public invokeDeprecated($description, $module, $hook, array $args = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:430
      public invokeAllDeprecated($description, $hook, array $args = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:439
      public alter($type, &$data, &$context1 = null, &$context2 = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:467
      public alterDeprecated($description, $type, &$data, &$context1 = null, &$context2 = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:559
      public getModuleDirectories() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:715
      public getName($module) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:726
      protected add($type, $name, $path) Adds a module or profile to the list of currently active modules.
      /**
      * Adds a module or profile to the list of currently active modules.
      *
      * @param string $type
      *   The extension type; either 'module' or 'profile'.
      * @param string $name
      *   The module name; e.g., 'node'.
      * @param string $path
      *   The module path; e.g., 'core/modules/node'.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:213
      protected buildHookInfo() Builds hook_hook_info() information.
      /**
      * Builds hook_hook_info() information.
      *
      * @see \Drupal\Core\Extension\ModuleHandler::getHookInfo()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:308
      protected getImplementationInfo($hook): mixed[] Provides information about modules' implementations of a hook.
      /**
      * Provides information about modules' implementations of a hook.
      *
      * @param string $hook
      *   The name of the hook (e.g. "help" or "menu").
      *
      * @return mixed[]
      *   An array whose keys are the names of the modules which are implementing
      *   this hook and whose values are either a string identifying a file in
      *   which the implementation is to be found, or FALSE, if the implementation
      *   is in the module file.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:590
      protected buildImplementationInfo($hook): mixed[] Builds hook implementation information for a given hook name.
      /**
      * Builds hook implementation information for a given hook name.
      *
      * @param string $hook
      *   The name of the hook (e.g. "help" or "menu").
      *
      * @return mixed[]
      *   An array whose keys are the names of the modules which are implementing
      *   this hook and whose values are either a string identifying a file in
      *   which the implementation is to be found, or FALSE, if the implementation
      *   is in the module file.
      *
      * @throws \RuntimeException
      *   Exception thrown when an invalid implementation is added by
      *   hook_module_implements_alter().
      *
      * @see \Drupal\Core\Extension\ModuleHandler::getImplementationInfo()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:636
      protected verifyImplementations(&$implementations, $hook): bool Verifies an array of implementations loaded from cache.
      /**
      * Verifies an array of implementations loaded from cache.
      *
      * Verification is done by including the lazy-loaded $module.$group.inc file,
      * and checking function_exists().
      *
      * @param string[] $implementations
      *   Implementation "group" by module name.
      * @param string $hook
      *   The hook name.
      *
      * @return bool
      *   TRUE, if all implementations exist.
      *   FALSE, if one or more implementations don't exist and need to be removed
      *     from the cache.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:687
      private triggerDeprecationError($description, $hook) Triggers an E_USER_DEPRECATED error if any module implements the hook.
      /**
      * Triggers an E_USER_DEPRECATED error if any module implements the hook.
      *
      * @param string $description
      *   Helpful text describing what to do instead of implementing this hook.
      * @param string $hook
      *   The name of the hook.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Extension/ModuleHandler.php:453
    protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#115 (3)
    • Properties (3)
    • Available methods (10)
    • protected translators -> array (1) Depth Limit
      protected sortedTranslators -> null
      protected defaultLangcode -> string (2) "en"
    • 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 <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:52
      public addTranslator(Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator, $priority0): $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 <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:66
      public getStringTranslation($langcode, $string, $context) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:87
      public translate($string, array $args = array(), array $options = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:104
      public translateString(Drupal\Core\StringTranslation\TranslatableMarkup $translated_string) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:111
      public formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:147
      public setDefaultLangcode($langcode) Sets the default langcode.
      /**
      * Sets the default langcode.
      *
      * @param string $langcode
      *   A language code.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:157
      public reset() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:164
      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 <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:79
      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 <ROOT>/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:129
    protected _serviceIds -> array (0)
    protected _entityStorages -> array (0)
    protected entityTypeId -> string (16) "commerce_product"
    protected entityType -> Drupal\Core\Entity\ContentEntityType#647 (41)
    • Properties (41)
    • Available methods (81)
    • Static class properties (2)
    • protected id -> string (16) "commerce_product"
      protected class -> string (38) "Drupal\commerce_product\Entity\Product"
      protected provider -> string (16) "commerce_product"
      protected static_cache -> boolean true
      protected render_cache -> boolean true
      protected persistent_cache -> boolean true
      protected entity_keys -> array (11) Depth Limit
      protected originalClass -> string (38) "Drupal\commerce_product\Entity\Product"
      protected handlers -> array (14) Depth Limit
      protected admin_permission -> string (27) "administer commerce_product"
      protected collection_permission -> null
      protected permission_granularity -> string (6) "bundle"
      protected links -> array (12) Depth Limit
      protected bundle_entity_type -> string (21) "commerce_product_type"
      protected bundle_of -> null
      protected bundle_label -> Drupal\Core\StringTranslation\TranslatableMarkup#648 (5) Depth Limit
      protected base_table -> string (16) "commerce_product"
      protected revision_data_table -> null
      protected revision_table -> null
      protected data_table -> string (27) "commerce_product_field_data"
      protected internal -> boolean false
      protected translatable -> boolean true
      protected show_revision_ui -> boolean false
      protected label -> Drupal\Core\StringTranslation\TranslatableMarkup#649 (5) Depth Limit
      protected label_collection -> Drupal\Core\StringTranslation\TranslatableMarkup#650 (5) Depth Limit
      protected label_singular -> Drupal\Core\StringTranslation\TranslatableMarkup#651 (5) Depth Limit
      protected label_plural -> Drupal\Core\StringTranslation\TranslatableMarkup#652 (5) Depth Limit
      protected label_count -> array (3) Depth Limit
      protected uri_callback -> null
      protected group -> string (7) "content"
      protected group_label -> Drupal\Core\StringTranslation\TranslatableMarkup#653 (5) Depth Limit
      protected field_ui_base_route -> string (38) "entity.commerce_product_type.edit_form"
      protected common_reference_target -> boolean false
      protected list_cache_contexts -> array (0)
      protected list_cache_tags -> array (1) Depth Limit
      protected constraints -> array (2) Depth Limit
      protected additional -> array (1) Depth Limit
      protected _serviceIds -> array (0)
      protected _entityStorages -> array (0)
      protected stringTranslation -> null
      protected revision_metadata_keys -> array (1) Depth Limit
    • public __construct($definition) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityType.php:21
      public getConfigDependencyKey() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityType.php:37
      public getRevisionMetadataKeys() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityType.php:60
      public getRevisionMetadataKey($key) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityType.php:67
      public hasRevisionMetadataKey($key) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityType.php:75
      public setRevisionMetadataKey($key, $field_name) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityType.php:83
      public __sleep() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
      public __wakeup() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:74
      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\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:118
      public get($property) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:373
      public set($property, $value) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:386
      public isInternal() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:399
      public isStaticallyCacheable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:406
      public isRenderCacheable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:413
      public isPersistentlyCacheable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:420
      public getKeys() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:427
      public getKey($key) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:434
      public hasKey($key) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:442
      public getOriginalClass() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:450
      public setClass($class) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:457
      public entityClassImplements($interface) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:470
      public getHandlerClasses() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:477
      public getHandlerClass($handler_type, $nested = false) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:484
      public setHandlerClass($handler_type, $value) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:495
      public hasHandlerClass($handler_type, $nested = false) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:503
      public getStorageClass() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:518
      public setStorageClass($class) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:525
      public getFormClass($operation) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:544
      public setFormClass($operation, $class) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:551
      public hasFormClasses() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:559
      public hasRouteProviders() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:566
      public getListBuilderClass() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:573
      public setListBuilderClass($class) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:580
      public hasListBuilderClass() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:588
      public getViewBuilderClass() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:595
      public setViewBuilderClass($class) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:602
      public hasViewBuilderClass() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:610
      public getRouteProviderClasses() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:617
      public getAccessControlClass() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:624
      public setAccessClass($class) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:631
      public getAdminPermission() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:639
      public getCollectionPermission(): ?string {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:646
      public getPermissionGranularity() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:653
      public getLinkTemplates() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:660
      public getLinkTemplate($key) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:667
      public hasLinkTemplate($key) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:675
      public setLinkTemplate($key, $path) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:683
      public getBundleEntityType() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:695
      public getBundleOf() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:702
      public getBundleLabel() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:709
      public getBaseTable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:724
      public showRevisionUi() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:731
      public isTranslatable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:738
      public isRevisionable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:745
      public getRevisionDataTable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:753
      public getRevisionTable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:760
      public getDataTable() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:767
      public getLabel() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:774
      public getCollectionLabel() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:781
      public getSingularLabel() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:792
      public getPluralLabel() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:803
      public getCountLabel($count) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:814
      public getUriCallback() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:828
      public setUriCallback($callback) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:835
      public getGroup() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:843
      public getGroupLabel() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:850
      public getListCacheContexts() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:857
      public getListCacheTags() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:864
      public isCommonReferenceTarget() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:881
      public getConstraints() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:888
      public setConstraints(array $constraints) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:895
      public addConstraint($constraint_name, $options = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:903
      public getBundleConfigDependency($bundle) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityType.php:911
      public id() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Component\Plugin\Definition\PluginDefinition
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php:35
      public getClass() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Component\Plugin\Definition\PluginDefinition
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php:50
      public getProvider() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Component\Plugin\Definition\PluginDefinition
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php:57
      protected checkStorageClass($class) {@inheritdoc}
      /**
      * {@inheritdoc}
      *
      * @throws \InvalidArgumentException
      *   If the provided class does not implement
      *   \Drupal\Core\Entity\ContentEntityStorageInterface.
      *
      * @see \Drupal\Core\Entity\ContentEntityStorageInterface
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/ContentEntityType.php:50
      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\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
      protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) Formats a string containing a count of items.
      /**
      * Formats a string containing a count of items.
      *
      * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural()
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:79
      protected getNumberOfPlurals($langcode = null) 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()
      */
      
      Inherited from Drupal\Core\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:88
      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\Entity\EntityType
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:102
    • public const ID_MAX_LENGTH :: integer 32
      \Drupal\Core\Entity\ContentEntityType::ID_MAX_LENGTH
      public const BUNDLE_MAX_LENGTH :: integer 32
      \Drupal\Core\Entity\ContentEntityType::BUNDLE_MAX_LENGTH
    protected entityRepository -> Drupal\Core\Entity\EntityRepository#420 (3)
    • Properties (3)
    • Available methods (11)
    • Static class properties
    • protected entityTypeManager -> Drupal\Core\Entity\EntityTypeManager#68 (22) Depth Limit
      protected languageManager -> Drupal\Core\Language\LanguageManager#280 (4) Depth Limit
      protected contextRepository -> Drupal\Core\Plugin\Context\LazyContextRepository#422 (3) Depth Limit
    • public __construct(Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager, Drupal\Core\Language\LanguageManagerInterface $language_manager, Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository) Constructs a new EntityRepository.
      /**
      * Constructs a new EntityRepository.
      *
      * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
      *   The entity type manager.
      * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
      *   The language manager.
      * @param \Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository
      *   The context repository service.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:48
      public loadEntityByUuid($entity_type_id, $uuid) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:57
      public loadEntityByConfigTarget($entity_type_id, $target) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:72
      public getTranslationFromContext(Drupal\Core\Entity\EntityInterface $entity, $langcode = null, $context = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:94
      public getActive($entity_type_id, $entity_id, ?array $contexts = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:130
      public getActiveMultiple($entity_type_id, array $entity_ids, ?array $contexts = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:137
      public getCanonical($entity_type_id, $entity_id, ?array $contexts = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:174
      public getCanonicalMultiple($entity_type_id, array $entity_ids, ?array $contexts = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:181
      protected getContentLanguageFromContexts(array $contexts): string|null Retrieves the current content language from the specified contexts.
      /**
      * Retrieves the current content language from the specified contexts.
      *
      * This is a BC layer to support plugin context system identifiers, the
      * langcode key should be used instead and is preferred when given.
      *
      * @param string[] $contexts
      *   An array of context items.
      *
      * @return string|null
      *   A language code or NULL if no language context was provided.
      *
      * @internal
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:222
      protected getLatestTranslationAffectedRevision(Drupal\Core\Entity\RevisionableInterface $entity, $langcode): \Drupal\Core\Entity\RevisionableInterface Returns the latest revision translation of the specified entity.
      /**
      * Returns the latest revision translation of the specified entity.
      *
      * @param \Drupal\Core\Entity\RevisionableInterface $entity
      *   The default revision of the entity being converted.
      * @param string $langcode
      *   The language of the revision translation to be loaded.
      *
      * @return \Drupal\Core\Entity\RevisionableInterface
      *   The latest translation-affecting revision for the specified entity, or
      *   just the latest revision, if the specified entity is not translatable or
      *   does not have a matching translation yet.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:253
      protected loadRevision(Drupal\Core\Entity\RevisionableInterface $entity, $revision_id): \Drupal\Core\Entity\RevisionableInterface Loads the specified entity revision.
      /**
      * Loads the specified entity revision.
      *
      * @param \Drupal\Core\Entity\RevisionableInterface $entity
      *   The default revision of the entity being converted.
      * @param string $revision_id
      *   The identifier of the revision to be loaded.
      *
      * @return \Drupal\Core\Entity\RevisionableInterface
      *   An entity revision object.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityRepository.php:299
    • public const CONTEXT_ID_LEGACY_CONTEXT_OPERATION :: string (43) "@entity.repository:legacy_context_operation"
      \Drupal\Core\Entity\EntityRepository::CONTEXT_ID_LEGACY_CONTEXT_OPERATION
    protected entityDisplayRepository -> Drupal\Core\Entity\EntityDisplayRepository#456 (7)
    • Properties (7)
    • Available methods (23)
    • Static class properties
    • protected displayModeInfo -> array (1) Depth Limit
      protected languageManager -> Drupal\Core\Language\LanguageManager#280 (4) Depth Limit
      protected entityTypeManager -> Drupal\Core\Entity\EntityTypeManager#68 (22) Depth Limit
      protected moduleHandler -> Drupal\Core\Extension\ModuleHandler#116 (11) Depth Limit
      protected cacheBackend -> Drupal\Core\Cache\DatabaseBackend#111 (6) Depth Limit
      protected useCaches -> boolean true
      protected stringTranslation -> null
    • public __construct(Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager, Drupal\Core\Extension\ModuleHandlerInterface $module_handler, Drupal\Core\Cache\CacheBackendInterface $cache_backend, Drupal\Core\Language\LanguageManagerInterface $language_manager) Constructs a new EntityDisplayRepository.
      /**
      * Constructs a new EntityDisplayRepository.
      *
      * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
      *   The entity type manager.
      * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
      *   The module handler.
      * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
      *   The cache backend.
      * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
      *   The language manager.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:60
      public getAllViewModes() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:70
      public getViewModes($entity_type_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:77
      public getAllFormModes() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:84
      public getFormModes($entity_type_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:91
      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
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:118
      public getViewModeOptions($entity_type) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:153
      public getFormModeOptions($entity_type_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:160
      public getViewModeOptionsByBundle($entity_type_id, $bundle) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:167
      public getFormModeOptionsByBundle($entity_type_id, $bundle) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:174
      public clearDisplayModeInfo() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:241
      public getViewDisplay($entity_type, $bundle, $view_mode = 'default') {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:249
      public getFormDisplay($entity_type, $bundle, $form_mode = 'default') {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:272
      protected cacheGet($cid): object|false Fetches from the cache backend, respecting the use caches flag.
      /**
      * Fetches from the cache backend, respecting the use caches flag.
      *
      * @param string $cid
      *   The cache ID of the data to retrieve.
      *
      * @return object|false
      *   The cache item or FALSE on failure.
      *
      * @see \Drupal\Core\Cache\CacheBackendInterface::get()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php:35
      protected cacheSet($cid, $data, $expire = -1, array $tags = array()) Stores data in the persistent cache, respecting the use caches flag.
      /**
      * Stores data in the persistent cache, respecting the use caches flag.
      *
      * @param string $cid
      *   The cache ID of the data to store.
      * @param mixed $data
      *   The data to store in the cache.
      *   Some storage engines only allow objects up to a maximum of 1MB in size to
      *   be stored by default. When caching large arrays or similar, take care to
      *   ensure $data does not exceed this size.
      * @param int $expire
      *   One of the following values:
      *   - CacheBackendInterface::CACHE_PERMANENT: Indicates that the item should
      *     not be removed unless it is deleted explicitly.
      *   - A Unix timestamp: Indicates that the item will be considered invalid
      *     after this time, i.e. it will not be returned by get() unless
      *     $allow_invalid has been set to TRUE. When the item has expired, it may
      *     be permanently deleted by the garbage collector at any time.
      * @param array $tags
      *   An array of tags to be stored with the cache item. These should normally
      *   identify objects used to build the cache item, which should trigger
      *   cache invalidation when updated. For example if a cached item represents
      *   a node, both the node ID and the author's user ID might be passed in as
      *   tags. For example array('node' => array(123), 'user' => array(92)).
      *
      * @see \Drupal\Core\Cache\CacheBackendInterface::set()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php:69
      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
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
      protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) Formats a string containing a count of items.
      /**
      * Formats a string containing a count of items.
      *
      * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:79
      protected getNumberOfPlurals($langcode = null) 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()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:88
      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 <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:102
      protected getAllDisplayModesByEntityType($display_type): array Gets the entity display mode info for all entity types.
      /**
      * Gets the entity display mode info for all entity types.
      *
      * @param string $display_type
      *   The display type to be retrieved. It can be "view_mode" or "form_mode".
      *
      * @return array
      *   The display mode info for all entity types.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:104
      protected getDisplayModesByEntityType($display_type, $entity_type_id): array Gets the entity display mode info for a specific entity type.
      /**
      * Gets the entity display mode info for a specific entity type.
      *
      * @param string $display_type
      *   The display type to be retrieved. It can be "view_mode" or "form_mode".
      * @param string $entity_type_id
      *   The entity type whose display mode info should be returned.
      *
      * @return array
      *   The display mode info for a specific entity type.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:137
      protected getDisplayModeOptions($display_type, $entity_type_id): array Gets an array of display mode options.
      /**
      * Gets an array of display mode options.
      *
      * @param string $display_type
      *   The display type to be retrieved. It can be "view_mode" or "form_mode".
      * @param string $entity_type_id
      *   The entity type whose display mode options should be returned.
      *
      * @return array
      *   An array of display mode labels, keyed by the display mode ID.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:189
      protected getDisplayModeOptionsByBundle($display_type, $entity_type_id, $bundle): array Returns an array of enabled display mode options by bundle.
      /**
      * Returns an array of enabled display mode options by bundle.
      *
      * @param $display_type
      *   The display type to be retrieved. It can be "view_mode" or "form_mode".
      * @param string $entity_type_id
      *   The entity type whose display mode options should be returned.
      * @param string $bundle
      *   The name of the bundle.
      *
      * @return array
      *   An array of display mode labels, keyed by the display mode ID.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php:210
    • public const DEFAULT_DISPLAY_MODE :: string (7) "default"
      \Drupal\Core\Entity\EntityDisplayRepository::DEFAULT_DISPLAY_MODE
    protected cacheBin -> string (6) "render"
    protected languageManager -> Drupal\Core\Language\LanguageManager#280 (4)
    • Properties (5)
    • Available methods (22)
    • protected definedLanguageTypesInfo -> undefined
      protected languages -> array (1) Depth Limit
      protected defaultLanguage -> Drupal\Core\Language\LanguageDefault#269 (1) Depth Limit
      protected _serviceIds -> array (0)
      protected _entityStorages -> array (0)
    • public __sleep() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
      public __construct(Drupal\Core\Language\LanguageDefault $default_language) Constructs the language manager.
      /**
      * Constructs the language manager.
      *
      * @param \Drupal\Core\Language\LanguageDefault $default_language
      *   The default language.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:46
      public isMultilingual() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:53
      public getLanguageTypes() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:60
      public __wakeup() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:74
      public getDefinedLanguageTypesInfo(): array Returns information about all defined language types.
      /**
      * Returns information about all defined language types.
      *
      * Defines the three core language types:
      * - Interface language is the only configurable language type in core. It is
      *   used by t() as the default language if none is specified.
      * - Content language is by default non-configurable and inherits the
      *   interface language negotiated value. It is used by the Field API to
      *   determine the display language for fields if no explicit value is
      *   specified.
      * - URL language is by default non-configurable and is determined through the
      *   URL language negotiation method or the URL fallback language negotiation
      *   method if no language can be detected. It is used by l() as the default
      *   language if none is specified.
      *
      * @return array
      *   An associative array of language type information arrays keyed by
      *   language type machine name, in the format of
      *   hook_language_types_info().
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:84
      public getCurrentLanguage($type = 'language_interface') {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:107
      public reset($type = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:114
      public getDefaultLanguage() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:121
      public getLanguages($flags = 1) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:128
      public getNativeLanguages() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:147
      public getLanguage($langcode) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:155
      public getLanguageName($langcode) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:163
      public getDefaultLockedLanguages($weight0) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:179
      public isLanguageLocked($langcode) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:207
      public getFallbackCandidates(array $context = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:215
      public getLanguageSwitchLinks($type, Drupal\Core\Url $url) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:222
      public setConfigOverrideLanguage(?Drupal\Core\Language\LanguageInterface $language = null): $this Sets the configuration override language.
      /**
      * Sets the configuration override language.
      *
      * This function is a noop since the configuration cannot be overridden by
      * language unless the Language module is enabled. That replaces the default
      * language manager with a configurable language manager.
      *
      * @param \Drupal\Core\Language\LanguageInterface $language
      *   The language to override configuration with.
      *
      * @return $this
      *
      * @see \Drupal\language\ConfigurableLanguageManager::setConfigOverrideLanguage()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:387
      public getConfigOverrideLanguage() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:394
      protected filterLanguages(array $languages, $flags = 1): \Drupal\Core\Language\LanguageInterface[] Filters the full list of languages based on the value of the flag.
      /**
      * Filters the full list of languages based on the value of the flag.
      *
      * The locked languages are removed by default.
      *
      * @param \Drupal\Core\Language\LanguageInterface[] $languages
      *   Array with languages to be filtered.
      * @param int $flags
      *   (optional) Specifies the state of the languages that have to be returned.
      *   It can be: LanguageInterface::STATE_CONFIGURABLE,
      *   LanguageInterface::STATE_LOCKED, or LanguageInterface::STATE_ALL.
      *
      * @return \Drupal\Core\Language\LanguageInterface[]
      *   An associative array of languages, keyed by the language code.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:413
      public static getStandardLanguageList() {@inheritdoc}
      \Drupal\Core\Language\LanguageManager::getStandardLanguageList()
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:229
      public static getUnitedNationsLanguageList(): array The 6 official languages used at the United Nations.
      \Drupal\Core\Language\LanguageManager::getUnitedNationsLanguageList()
      /**
      * The 6 official languages used at the United Nations.
      *
      * This list is based on https://www.un.org/en/our-work/official-languages
      * and it uses the same format as getStandardLanguageList().
      *
      * @return array
      *   An array with language codes as keys, and English and native language
      *   names as values.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Language/LanguageManager.php:360
    protected themeRegistry -> Drupal\Core\Theme\Registry#367 (15)
    • Properties (15)
    • Available methods (16)
    • protected theme -> Drupal\Core\Theme\ActiveTheme#1720 (11) Depth Limit
      protected lock -> Drupal\Core\ProxyClass\Lock\DatabaseLockBackend#284 (5) Depth Limit
      protected registry -> array (0)
      protected cache -> Drupal\Core\Cache\DatabaseBackend#354 (6) Depth Limit
      protected moduleHandler -> Drupal\Core\Extension\ModuleHandler#116 (11) Depth Limit
      protected runtimeRegistry -> array (1) Depth Limit
      protected initialized -> boolean false
      protected themeName -> null
      protected root -> string (56) "/var/www/vhosts/creativelocalsolutions.co.uk/treedev/web"
      • Directory (4KB)
      • drwxr-xr-x 10002 1002 4KB Jan 28 17:12 /var/www/vhosts/creativelocalsolutions.co.uk/treedev/web
        
      protected themeHandler -> Drupal\Core\Extension\ThemeHandler#303 (4) Depth Limit
      protected themeInitialization -> Drupal\Core\Theme\ThemeInitialization#375 (5) Depth Limit
      protected themeManager -> Drupal\Core\Theme\ThemeManager#374 (6) Depth Limit
      protected runtimeCache -> Drupal\Core\Cache\DatabaseBackend#117 (6) Depth Limit
      protected moduleList -> Drupal\Core\Extension\ModuleExtensionList#380 (15) Depth Limit
      protected kernel -> Drupal\Core\DrupalKernel#4 (21) Depth Limit
    • public __construct($root, Drupal\Core\Cache\CacheBackendInterface $cache, Drupal\Core\Lock\LockBackendInterface $lock, Drupal\Core\Extension\ModuleHandlerInterface $module_handler, Drupal\Core\Extension\ThemeHandlerInterface $theme_handler, Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization, Drupal\Core\Cache\CacheBackendInterface $runtime_cache, Drupal\Core\Extension\ModuleExtensionList $module_list, ?Symfony\Component\HttpKernel\HttpKernelInterface $kernel = null, $theme_name = null) Constructs a \Drupal\Core\Theme\Registry object.
      /**
      * Constructs a \Drupal\Core\Theme\Registry object.
      *
      * @param string $root
      *   The app root.
      * @param \Drupal\Core\Cache\CacheBackendInterface $cache
      *   The cache backend interface to use for the complete theme registry data.
      * @param \Drupal\Core\Lock\LockBackendInterface $lock
      *   The lock backend.
      * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
      *   The module handler to use to load modules.
      * @param \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler
      *   The theme handler.
      * @param \Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization
      *   The theme initialization.
      * @param \Drupal\Core\Cache\CacheBackendInterface $runtime_cache
      *   The cache backend interface to use for the runtime theme registry data.
      * @param \Drupal\Core\Extension\ModuleExtensionList $module_list
      *   The module list.
      * @param \Symfony\Component\HttpKernel\HttpKernelInterface|null $kernel
      *   The kernel.
      * @param string $theme_name
      *   (optional) The name of the theme for which to construct the registry.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:188
      public setThemeManager(Drupal\Core\Theme\ThemeManagerInterface $theme_manager) Sets the theme manager.
      /**
      * Sets the theme manager.
      *
      * @param \Drupal\Core\Theme\ThemeManagerInterface $theme_manager
      *   The theme manager.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:211
      public get(): array Returns the complete theme registry from cache or rebuilds it.
      /**
      * Returns the complete theme registry from cache or rebuilds it.
      *
      * @return array
      *   The complete theme registry data array.
      *
      * @see Registry::$registry
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:247
      public getRuntime(): \Drupal\Core\Utility\ThemeRegistry Returns the incomplete, runtime theme registry.
      /**
      * Returns the incomplete, runtime theme registry.
      *
      * @return \Drupal\Core\Utility\ThemeRegistry
      *   A shared instance of the ThemeRegistry class, provides an ArrayObject
      *   that allows it to be accessed with array syntax and isset(), and is more
      *   lightweight than the full registry.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:316
      public getBaseHook($hook): string|false Returns the base hook for a given hook suggestion.
      /**
      * Returns the base hook for a given hook suggestion.
      *
      * @param string $hook
      *   The name of a theme hook whose base hook to find.
      *
      * @return string|false
      *   The name of the base hook or FALSE.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:340
      public reset() Invalidates theme registry caches.
      /**
      * Invalidates theme registry caches.
      *
      * To be called when the list of enabled extensions is changed.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:811
      public destruct() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:841
      public getPrefixGroupedUserFunctions($prefixes = array()): array Gets all user functions grouped by the word before the first underscore.
      /**
      * Gets all user functions grouped by the word before the first underscore.
      *
      * @param $prefixes
      *   An array of function prefixes by which the list can be limited.
      *
      * @return array
      *   Functions grouped by the first prefix.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:856
      protected init($theme_name = null) Initializes a theme with a certain name.
      /**
      * Initializes a theme with a certain name.
      *
      * This function does to much magic, so it should be replaced by another
      * services which holds the current active theme information.
      *
      * @param string $theme_name
      *   (optional) The name of the theme for which to construct the registry.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:224
      protected cacheGet(): ?array Gets the theme registry cache.
      /**
      * Gets the theme registry cache.
      *
      * @return array|null
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:296
      protected setCache() Persists the theme registry in the cache backend.
      /**
      * Persists the theme registry in the cache backend.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:327
      protected build(): array Builds the theme registry cache.
      /**
      * Builds the theme registry cache.
      *
      * Theme hook definitions are collected in the following order:
      * - Modules
      * - Base theme engines
      * - Base themes
      * - Theme engine
      * - Theme
      *
      * All theme hook definitions are essentially just collated and merged in the
      * above order. However, various extension-specific default values and
      * customizations are required; e.g., to record the effective file path for
      * theme template. Therefore, this method first collects all extensions per
      * type, and then dispatches the processing for each extension to
      * processExtension().
      *
      * After completing the collection, modules are allowed to alter it. Lastly,
      * any derived and incomplete theme hook definitions that are hook suggestions
      * for base hooks (e.g., 'block__node' for the base hook 'block') need to be
      * determined based on the full registry and classified as 'base hook'.
      *
      * See the @link themeable Default theme implementations topic @endlink for
      * details.
      *
      * @return array
      *   The built theme registry.
      *
      * @see hook_theme_registry_alter()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:389
      protected processExtension(array &$cache, $name, $type, $theme, $path) Process a single implementation of hook_theme().
      /**
      * Process a single implementation of hook_theme().
      *
      * @param array $cache
      *   The theme registry that will eventually be cached; It is an associative
      *   array keyed by theme hooks, whose values are associative arrays
      *   describing the hook:
      *   - 'type': The passed-in $type.
      *   - 'theme path': The passed-in $path.
      *   - 'template': The filename of the template generating output for this
      *     theme hook. The template is in the directory defined by the 'path' key
      *     of hook_theme() or defaults to "$path/templates".
      *   - 'variables': The variables for this theme hook as defined in
      *     hook_theme(). If there is more than one implementation and 'variables'
      *     is not specified in a later one, then the previous definition is kept.
      *   - 'render element': The renderable element for this theme hook as defined
      *     in hook_theme(). If there is more than one implementation and
      *     'render element' is not specified in a later one, then the previous
      *     definition is kept.
      *   - See the @link themeable Theme system overview topic @endlink for
      *     detailed documentation.
      * @param string $name
      *   The name of the module, theme engine, base theme engine, theme or base
      *   theme implementing hook_theme().
      * @param string $type
      *   One of 'module', 'theme_engine', 'base_theme_engine', 'theme', or
      *   'base_theme'. Unlike regular hooks that can only be implemented by
      *   modules, each of these can implement hook_theme(). This function is
      *   called in aforementioned order and new entries override older ones. For
      *   example, if a theme hook is both defined by a module and a theme, then
      *   the definition in the theme will be used.
      * @param string $theme
      *   The actual name of theme, module, etc. that is being processed.
      * @param string $path
      *   The directory where $name is. For example, modules/system or
      *   themes/olivero.
      *
      * @see \Drupal\Core\Theme\ThemeManagerInterface::render()
      * @see hook_theme()
      * @see \Drupal\Core\Extension\ThemeHandler::listInfo()
      * @see twig_render_template()
      *
      * @throws \BadFunctionCallException
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:491
      protected completeSuggestion($hook, array &$cache) Completes the definition of the requested suggestion hook.
      /**
      * Completes the definition of the requested suggestion hook.
      *
      * @param string $hook
      *   The name of the suggestion hook to complete.
      * @param array $cache
      *   The theme registry, as documented in
      *   \Drupal\Core\Theme\Registry::processExtension().
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:655
      protected mergePreprocessFunctions($destination_hook_name, $source_hook_name, $parent_hook, array &$cache) Merges the source hook's preprocess functions into the destination hook's.
      /**
      * Merges the source hook's preprocess functions into the destination hook's.
      *
      * @param string $destination_hook_name
      *   The name of the hook to merge preprocess functions to.
      * @param string $source_hook_name
      *   The name of the hook to merge preprocess functions from.
      * @param array $parent_hook
      *   The parent hook if it exists. Either an incomplete hook from suggestions
      *   or a base hook.
      * @param array $cache
      *   The theme registry, as documented in
      *   \Drupal\Core\Theme\Registry::processExtension().
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:695
      protected postProcessExtension(array &$cache, Drupal\Core\Theme\ActiveTheme $theme) Completes the theme registry adding discovered functions and hooks.
      /**
      * Completes the theme registry adding discovered functions and hooks.
      *
      * @param array $cache
      *   The theme registry as documented in
      *   \Drupal\Core\Theme\Registry::processExtension().
      * @param \Drupal\Core\Theme\ActiveTheme $theme
      *   Current active theme.
      *
      * @see ::processExtension()
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Theme/Registry.php:723
    protected singleFieldDisplays -> null
    protected entityTypeManager -> Drupal\Core\Entity\EntityTypeManager#68 (22)
    • Properties (23)
    • Available methods (38)
    • protected moduleExtensionList -> undefined
      protected discovery -> Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery#66 (8) Depth Limit
      protected factory -> null
      protected mapper -> null
      protected cacheKey -> string (11) "entity_type"
      protected cacheTags -> array (1) Depth Limit
      protected alterHook -> string (11) "entity_type"
      protected subdir -> string (6) "Entity"
      protected moduleHandler -> Drupal\Core\Extension\ModuleHandler#116 (11) Depth Limit
      protected defaults -> array (0)
      protected pluginDefinitionAnnotationName -> string (34) "Drupal\Component\Annotation\Plugin"
      protected pluginDefinitionAttributeName -> null
      protected pluginInterface -> string (34) "Drupal\Core\Entity\EntityInterface"
      protected namespaces -> ArrayObject#273 (0) Depth Limit
      protected additionalAnnotationNamespaces -> array (0)
      protected definitions -> array (95) Depth Limit
      protected cacheBackend -> Drupal\Core\Cache\DatabaseBackend#111 (6) Depth Limit
      protected useCaches -> boolean true
      protected handlers -> array (2) Depth Limit
      protected stringTranslation -> Drupal\Core\StringTranslation\TranslationManager#115 (3) Depth Limit
      protected classResolver -> Drupal\Core\DependencyInjection\ClassResolver#82 (3) Depth Limit
      protected entityLastInstalledSchemaRepository -> Drupal\Core\Entity\EntityLastInstalledSchemaRepository#62 (3) Depth Limit
      protected container -> Drupal\Core\DependencyInjection\Container Blacklisted
    • public __construct(Traversable $namespaces, Drupal\Core\Extension\ModuleHandlerInterface $module_handler, Drupal\Core\Cache\CacheBackendInterface $cache, Drupal\Core\StringTranslation\TranslationInterface $string_translation, Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver, Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository, ?Symfony\Component\DependencyInjection\ContainerInterface $container = null) Constructs a new Entity plugin manager.
      /**
      * Constructs a new Entity plugin manager.
      *
      * @param \Traversable $namespaces
      *   An object that implements \Traversable which contains the root paths
      *   keyed by the corresponding namespace to look for plugin implementations,
      * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
      *   The module handler.
      * @param \Drupal\Core\Cache\CacheBackendInterface $cache
      *   The cache backend to use.
      * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
      *   The string translation.
      * @param \Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver
      *   The class resolver.
      * @param \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository
      *   The entity last installed schema repository.
      * @param \Symfony\Component\DependencyInjection\ContainerInterface|null $container
      *   The service container.
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:84
      public processDefinition(&$definition, $plugin_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:103
      public getDefinition($entity_type_id, $exception_on_invalid = true) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:134
      public getActiveDefinition($entity_type_id): \Drupal\Core\Entity\EntityTypeInterface Gets the active definition for a content entity type.
      /**
      * Gets the active definition for a content entity type.
      *
      * @param string $entity_type_id
      *   The entity type ID.
      *
      * @return \Drupal\Core\Entity\EntityTypeInterface
      *   The active entity type definition.
      *
      * @internal
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:156
      public clearCachedDefinitions() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:164
      public useCaches($use_caches = false) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:172
      public hasHandler($entity_type_id, $handler_type) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:183
      public getStorage($entity_type_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:194
      public getListBuilder($entity_type_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:201
      public getFormObject($entity_type_id, $operation) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:208
      public getRouteProviders($entity_type_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:229
      public getViewBuilder($entity_type_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:244
      public getAccessControlHandler($entity_type_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:251
      public getHandler($entity_type_id, $handler_type) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:258
      public createHandlerInstance($class, ?Drupal\Core\Entity\EntityTypeInterface $definition = null) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:278
      public setContainer(?Symfony\Component\DependencyInjection\ContainerInterface $container): void Sets the service container.
      /**
      * Sets the service container.
      *
      * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0.
      *    Instead, you should pass the container as an argument in the
      *    __construct() method.
      *
      * @see https://www.drupal.org/node/3419963
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:304
      public hasDefinition($plugin_id) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:59
      public setCacheBackend(Drupal\Core\Cache\CacheBackendInterface $cache_backend, $cache_key, array $cache_tags = array()) Initialize the cache backend.
      /**
      * Initialize the cache backend.
      *
      * Plugin definitions are cached using the provided cache backend.
      *
      * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
      *   Cache backend instance to use.
      * @param string $cache_key
      *   Cache key prefix to use.
      * @param array $cache_tags
      *   (optional) When providing a list of cache tags, the cached plugin
      *   definitions are tagged with the provided cache tags. These cache tags can
      *   then be used to clear the corresponding cached plugin definitions. Note
      *   that this should be used with care! For clearing all cached plugin
      *   definitions of a plugin manager, call that plugin manager's
      *   clearCachedDefinitions() method. Only use cache tags when cached plugin
      *   definitions should be cleared along with other, related cache entries.
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:189
      public getDefinitions() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:210
      public getCacheContexts() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:403
      public getCacheTags() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:410
      public getCacheMaxAge() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:417
      public createInstance($plugin_id, array $configuration = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Component\Plugin\PluginManagerBase
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/PluginManagerBase.php:71
      public getInstance(array $options) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Component\Plugin\PluginManagerBase
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/PluginManagerBase.php:134
      protected findDefinitions() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityTypeManager.php:118
      protected cacheGet($cid): object|false Fetches from the cache backend, respecting the use caches flag.
      /**
      * Fetches from the cache backend, respecting the use caches flag.
      *
      * @param string $cid
      *   The cache ID of the data to retrieve.
      *
      * @return object|false
      *   The cache item or FALSE on failure.
      *
      * @see \Drupal\Core\Cache\CacheBackendInterface::get()
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php:35
      protected doGetDefinition(array $definitions, $plugin_id, $exception_on_invalid): array|null Gets a specific plugin definition.
      /**
      * Gets a specific plugin definition.
      *
      * @param array $definitions
      *   An array of the available plugin definitions.
      * @param string $plugin_id
      *   A plugin id.
      * @param bool $exception_on_invalid
      *   If TRUE, an invalid plugin ID will cause an exception to be thrown; if
      *   FALSE, NULL will be returned.
      *
      * @return array|null
      *   A plugin definition, or NULL if the plugin ID is invalid and
      *   $exception_on_invalid is TRUE.
      *
      * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
      *   Thrown if $plugin_id is invalid and $exception_on_invalid is TRUE.
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:43
      protected cacheSet($cid, $data, $expire = -1, array $tags = array()) Stores data in the persistent cache, respecting the use caches flag.
      /**
      * Stores data in the persistent cache, respecting the use caches flag.
      *
      * @param string $cid
      *   The cache ID of the data to store.
      * @param mixed $data
      *   The data to store in the cache.
      *   Some storage engines only allow objects up to a maximum of 1MB in size to
      *   be stored by default. When caching large arrays or similar, take care to
      *   ensure $data does not exceed this size.
      * @param int $expire
      *   One of the following values:
      *   - CacheBackendInterface::CACHE_PERMANENT: Indicates that the item should
      *     not be removed unless it is deleted explicitly.
      *   - A Unix timestamp: Indicates that the item will be considered invalid
      *     after this time, i.e. it will not be returned by get() unless
      *     $allow_invalid has been set to TRUE. When the item has expired, it may
      *     be permanently deleted by the garbage collector at any time.
      * @param array $tags
      *   An array of tags to be stored with the cache item. These should normally
      *   identify objects used to build the cache item, which should trigger
      *   cache invalidation when updated. For example if a cached item represents
      *   a node, both the node ID and the author's user ID might be passed in as
      *   tags. For example array('node' => array(123), 'user' => array(92)).
      *
      * @see \Drupal\Core\Cache\CacheBackendInterface::set()
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php:69
      protected alterInfo($alter_hook) Sets the alter hook name.
      /**
      * Sets the alter hook name.
      *
      * @param string $alter_hook
      *   Name of the alter hook; for example, to invoke
      *   hook_my_module_data_alter() pass in "my_module_data".
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:203
      protected getCachedDefinitions(): array|null Returns the cached plugin definitions of the decorated discovery class.
      /**
      * Returns the cached plugin definitions of the decorated discovery class.
      *
      * @return array|null
      *   On success this will return an array of plugin definitions. On failure
      *   this should return NULL, indicating to other methods that this has not
      *   yet been defined. Success with no values should return as an empty array
      *   and would actually be returned by the getDefinitions() method.
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:247
      protected setCachedDefinitions($definitions) Sets a cache of plugin definitions for the decorated discovery class.
      /**
      * Sets a cache of plugin definitions for the decorated discovery class.
      *
      * @param array $definitions
      *   List of definitions to store in cache.
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:260
      protected getDiscovery() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:304
      protected getFactory() {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:323
      protected extractProviderFromDefinition($plugin_definition): string|null Extracts the provider from a plugin definition.
      /**
      * Extracts the provider from a plugin definition.
      *
      * @param mixed $plugin_definition
      *   The plugin definition. Usually either an array or an instance of
      *   \Drupal\Component\Plugin\Definition\PluginDefinitionInterface
      *
      * @return string|null
      *   The provider string, if it exists. NULL otherwise.
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:363
      protected alterDefinitions(&$definitions) Invokes the hook to alter the definitions if the alter hook is set.
      /**
      * Invokes the hook to alter the definitions if the alter hook is set.
      *
      * @param $definitions
      *   The discovered plugin definitions.
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:384
      protected providerExists($provider): bool Determines if the provider of a definition exists.
      /**
      * Determines if the provider of a definition exists.
      *
      * @return bool
      *   TRUE if provider exists, FALSE otherwise.
      */
      
      Inherited from Drupal\Core\Plugin\DefaultPluginManager
      Defined in <ROOT>/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:396
      protected handlePluginNotFound($plugin_id, array $configuration): object Allows plugin managers to specify custom behavior if a plugin is not found.
      /**
      * Allows plugin managers to specify custom behavior if a plugin is not found.
      *
      * @param string $plugin_id
      *   The ID of the missing requested plugin.
      * @param array $configuration
      *   An array of configuration relevant to the plugin instance.
      *
      * @return object
      *   A fallback plugin instance.
      *
      * @throws \BadMethodCallException
      *   When ::getFallbackPluginId() is not implemented in the concrete plugin
      *   manager class.
      */
      
      Inherited from Drupal\Component\Plugin\PluginManagerBase
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/PluginManagerBase.php:102
      protected getFallbackPluginId($plugin_id, array $configuration = array()): string Gets a fallback id for a missing plugin.
      /**
      * Gets a fallback id for a missing plugin.
      *
      * This method should be implemented in extending classes that also implement
      * FallbackPluginManagerInterface. It is called by
      * PluginManagerBase::handlePluginNotFound on the abstract class, and
      * therefore should be defined as well on the abstract class to prevent static
      * analysis errors.
      *
      * @param string $plugin_id
      *   The ID of the missing requested plugin.
      * @param array $configuration
      *   An array of configuration relevant to the plugin instance.
      *
      * @return string
      *   The id of an existing plugin to use when the plugin does not exist.
      *
      * @throws \BadMethodCallException
      *   If the method is not implemented in the concrete plugin manager class.
      */
      
      Inherited from Drupal\Component\Plugin\PluginManagerBase
      Defined in <ROOT>/core/lib/Drupal/Component/Plugin/PluginManagerBase.php:127
    protected variationFieldRenderer -> Drupal\commerce_product\ProductVariationFieldRenderer#1676 (1)
    • Properties
    • Available methods (6)
    • protected variationViewBuilder -> Drupal\Core\Entity\EntityViewBuilder#1677 (12) Depth Limit
    • public __construct(Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager) Constructs a new ProductVariationFieldRenderer object.
      /**
      * Constructs a new ProductVariationFieldRenderer object.
      *
      * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
      *   The entity type manager.
      */
      
      Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductVariationFieldRenderer.php:26
      public renderFields(Drupal\commerce_product\Entity\ProductVariationInterface $variation, $view_mode = 'default') {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductVariationFieldRenderer.php:33
      public renderField($field_name, Drupal\commerce_product\Entity\ProductVariationInterface $variation, $display_options = array()) {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductVariationFieldRenderer.php:59
      public replaceRenderedFields(Drupal\Core\Ajax\AjaxResponse $response, Drupal\commerce_product\Entity\ProductVariationInterface $variation, $view_mode = 'default') {@inheritdoc}
      /**
      * {@inheritdoc}
      */
      
      Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductVariationFieldRenderer.php:72
      protected prepareForAjax(array $rendered_field, $field_name, Drupal\commerce_product\Entity\ProductVariationInterface $variation): array Prepares the rendered field for AJAX replacement.
      /**
      * Prepares the rendered field for AJAX replacement.
      *
      * @param array $rendered_field
      *   The rendered field.
      * @param string $field_name
      *   The field name.
      * @param \Drupal\commerce_product\Entity\ProductVariationInterface $variation
      *   The product variation.
      *
      * @return array
      *   The prepared rendered field.
      */
      
      Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductVariationFieldRenderer.php:92
      protected buildAjaxReplacementClass($field_name, Drupal\commerce_product\Entity\ProductVariationInterface $variation): string Builds the AJAX replacement CSS class for a variation's field.
      /**
      * Builds the AJAX replacement CSS class for a variation's field.
      *
      * @param string $field_name
      *   The field name.
      * @param \Drupal\commerce_product\Entity\ProductVariationInterface $variation
      *   The product variation.
      *
      * @return string
      *   The CSS class.
      */
      
      Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductVariationFieldRenderer.php:136
  • public __construct(Drupal\Core\Entity\EntityTypeInterface $entity_type, Drupal\Core\Entity\EntityRepositoryInterface $entity_repository, Drupal\Core\Language\LanguageManagerInterface $language_manager, Drupal\Core\Theme\Registry $theme_registry, Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository, Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager, Drupal\commerce_product\ProductVariationFieldRenderer $variation_field_renderer) Constructs a new ProductViewBuilder object.
    new \Drupal\commerce_product\ProductViewBuilder(Drupal\Core\Entity\EntityTypeInterface $entity_type, Drupal\Core\Entity\EntityRepositoryInterface $entity_repository, Drupal\Core\Language\LanguageManagerInterface $language_manager, Drupal\Core\Theme\Registry $theme_registry, Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository, Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager, Drupal\commerce_product\ProductVariationFieldRenderer $variation_field_renderer)
    /**
    * Constructs a new ProductViewBuilder object.
    *
    * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
    *   The entity type definition.
    * @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository
    *   The entity repository.
    * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
    *   The language manager.
    * @param \Drupal\Core\Theme\Registry $theme_registry
    *   The theme registry.
    * @param \Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository
    *   The entity display repository.
    * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
    *   The entity type manager.
    * @param \Drupal\commerce_product\ProductVariationFieldRenderer $variation_field_renderer
    *   The product variation field renderer.
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductViewBuilder.php:54
    public view(Drupal\Core\Entity\EntityInterface $entity, $view_mode = 'full', $langcode = null) {@inheritdoc}
    $0['#pre_render'][0][0]->view(Drupal\Core\Entity\EntityInterface $entity, $view_mode = 'full', $langcode = null)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:122
    public viewMultiple(array $entities = array(), $view_mode = 'full', $langcode = null) {@inheritdoc}
    $0['#pre_render'][0][0]->viewMultiple(array $entities = array(), $view_mode = 'full', $langcode = null)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:145
    public build(array $build): array Builds an entity's view; augments entity defaults.
    $0['#pre_render'][0][0]->build(array $build)
    /**
    * Builds an entity's view; augments entity defaults.
    *
    * This function is assigned as a #pre_render callback in ::view().
    *
    * It transforms the renderable array for a single entity to the same
    * structure as if we were rendering multiple entities, and then calls the
    * default ::buildMultiple() #pre_render callback.
    *
    * @param array $build
    *   A renderable array containing build information and context for an entity
    *   view.
    *
    * @return array
    *   The updated renderable array.
    *
    * @see \Drupal\Core\Render\RendererInterface::render()
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:237
    public buildMultiple(array $build_list): array Builds multiple entities' views; augments entity defaults.
    $0['#pre_render'][0][0]->buildMultiple(array $build_list)
    /**
    * Builds multiple entities' views; augments entity defaults.
    *
    * This function is assigned as a #pre_render callback in ::viewMultiple().
    *
    * By delaying the building of an entity until the #pre_render processing in
    * \Drupal::service('renderer')->render(), the processing cost of assembling
    * an entity's renderable array is saved on cache-hit requests.
    *
    * @param array $build_list
    *   A renderable  array containing build information and context for an
    *   entity view.
    *
    * @return array
    *   The updated renderable array.
    *
    * @see \Drupal\Core\Render\RendererInterface::render()
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:261
    public buildComponents(array &$build, array $entities, array $displays, $view_mode) {@inheritdoc}
    $0['#pre_render'][0][0]->buildComponents(array &$build, array $entities, array $displays, $view_mode)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:315
    public getCacheTags() {@inheritdoc}
    $0['#pre_render'][0][0]->getCacheTags()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:395
    public resetCache(?array $entities = null) {@inheritdoc}
    $0['#pre_render'][0][0]->resetCache(?array $entities = null)
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:402
    public viewField(Drupal\Core\Field\FieldItemListInterface $items, $display_options = array()) {@inheritdoc}
    $0['#pre_render'][0][0]->viewField(Drupal\Core\Field\FieldItemListInterface $items, $display_options = array())
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:447
    public viewFieldItem(Drupal\Core\Field\FieldItemInterface $item, $display = array()) {@inheritdoc}
    $0['#pre_render'][0][0]->viewFieldItem(Drupal\Core\Field\FieldItemInterface $item, $display = array())
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:472
    public __sleep() {@inheritdoc}
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:33
    public setModuleHandler(Drupal\Core\Extension\ModuleHandlerInterface $module_handler): $this Sets the module handler for this handler.
    $0['#pre_render'][0][0]->setModuleHandler(Drupal\Core\Extension\ModuleHandlerInterface $module_handler)
    /**
    * Sets the module handler for this handler.
    *
    * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
    *   The module handler.
    *
    * @return $this
    */
    
    Inherited from Drupal\Core\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityHandlerBase.php:46
    public __wakeup() {@inheritdoc}
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:74
    public setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation): $this Sets the string translation service to use.
    $0['#pre_render'][0][0]->setStringTranslation(Drupal\Core\StringTranslation\TranslationInterface $translation)
    /**
    * Sets the string translation service to use.
    *
    * @param \Drupal\Core\StringTranslation\TranslationInterface $translation
    *   The string translation service.
    *
    * @return $this
    */
    
    Inherited from Drupal\Core\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:118
    protected alterBuild(array &$build, Drupal\Core\Entity\EntityInterface $entity, Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode) {@inheritdoc}
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductViewBuilder.php:79
    protected getBuildDefaults(Drupal\Core\Entity\EntityInterface $entity, $view_mode): array Provides entity-specific defaults to the build process.
    /**
    * Provides entity-specific defaults to the build process.
    *
    * @param \Drupal\Core\Entity\EntityInterface $entity
    *   The entity for which the defaults should be provided.
    * @param string $view_mode
    *   The view mode that should be used.
    *
    * @return array
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:177
    protected addContextualLinks(array &$build, Drupal\Core\Entity\EntityInterface $entity) Add contextual links.
    /**
    * Add contextual links.
    *
    * @param array $build
    *   The render array that is being created.
    * @param \Drupal\Core\Entity\EntityInterface $entity
    *   The entity to be prepared.
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:355
    protected isViewModeCacheable($view_mode): bool Determines whether the view mode is cacheable.
    /**
    * Determines whether the view mode is cacheable.
    *
    * @param string $view_mode
    *   Name of the view mode that should be rendered.
    *
    * @return bool
    *   TRUE if the view mode can be cached, FALSE otherwise.
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:435
    protected getSingleFieldDisplay($entity, $field_name, $display_options): \Drupal\Core\Entity\Display\EntityViewDisplayInterface Gets an EntityViewDisplay for rendering an individual field.
    /**
    * Gets an EntityViewDisplay for rendering an individual field.
    *
    * @param \Drupal\Core\Entity\EntityInterface $entity
    *   The entity.
    * @param string $field_name
    *   The field name.
    * @param string|array $display_options
    *   The display options passed to the viewField() method.
    *
    * @return \Drupal\Core\Entity\Display\EntityViewDisplayInterface
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:505
    protected moduleHandler(): \Drupal\Core\Extension\ModuleHandlerInterface Gets the module handler.
    /**
    * Gets the module handler.
    *
    * @return \Drupal\Core\Extension\ModuleHandlerInterface
    *   The module handler.
    */
    
    Inherited from Drupal\Core\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityHandlerBase.php:31
    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\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:70
    protected formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) Formats a string containing a count of items.
    /**
    * Formats a string containing a count of items.
    *
    * @see \Drupal\Core\StringTranslation\TranslationInterface::formatPlural()
    */
    
    Inherited from Drupal\Core\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:79
    protected getNumberOfPlurals($langcode = null) 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()
    */
    
    Inherited from Drupal\Core\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:88
    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\Entity\EntityHandlerBase
    Defined in <ROOT>/core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php:102
    public static createInstance(Symfony\Component\DependencyInjection\ContainerInterface $container, Drupal\Core\Entity\EntityTypeInterface $entity_type) {@inheritdoc}
    \Drupal\commerce_product\ProductViewBuilder::createInstance(Symfony\Component\DependencyInjection\ContainerInterface $container, Drupal\Core\Entity\EntityTypeInterface $entity_type)
    /**
    * {@inheritdoc}
    */
    
    Defined in <ROOT>/modules/contrib/commerce/modules/product/src/ProductViewBuilder.php:64
    public static trustedCallbacks() {@inheritdoc}
    \Drupal\Core\Entity\EntityViewBuilder::trustedCallbacks()
    /**
    * {@inheritdoc}
    */
    
    Inherited from Drupal\Core\Entity\EntityViewBuilder
    Defined in <ROOT>/core/lib/Drupal/Core/Entity/EntityViewBuilder.php:138
  • public const THROW_EXCEPTION :: string (9) "exception"
    \Drupal\commerce_product\ProductViewBuilder::THROW_EXCEPTION
    public const TRIGGER_WARNING :: string (7) "warning"
    \Drupal\commerce_product\ProductViewBuilder::TRIGGER_WARNING
    public const TRIGGER_SILENCED_DEPRECATION :: string (20) "silenced_deprecation"
    \Drupal\commerce_product\ProductViewBuilder::TRIGGER_SILENCED_DEPRECATION
1 => string (5) "build"
$0['#pre_render'][0][1]
Called from <ROOT>/modules/contrib/devel/src/Controller/EntityDebugController.php:158 [Drupal\devel\DevelDumperManager->exportAsRenderable()]
  1. <ROOT>/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123 [call_user_func_array()]
  2. <ROOT>/core/lib/Drupal/Core/Render/Renderer.php:638 [Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()]
  3. <ROOT>/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:121 [Drupal\Core\Render\Renderer->executeInRenderContext()]
  4. <ROOT>/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:97 [Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()]
  5. .../symfony/http-kernel/HttpKernel.php:181 [Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()]
  6. .../symfony/http-kernel/HttpKernel.php:76 [Symfony\Component\HttpKernel\HttpKernel->handleRaw()]
  7. <ROOT>/core/lib/Drupal/Core/StackMiddleware/Session.php:53 [Symfony\Component\HttpKernel\HttpKernel->handle()]
  8. <ROOT>/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php:48 [Drupal\Core\StackMiddleware\Session->handle()]
  9. <ROOT>/core/lib/Drupal/Core/StackMiddleware/ContentLength.php:28 [Drupal\Core\StackMiddleware\KernelPreHandle->handle()]
  10. <ROOT>/core/modules/page_cache/src/StackMiddleware/PageCache.php:201 [Drupal\Core\StackMiddleware\ContentLength->handle()]
  11. <ROOT>/core/modules/page_cache/src/StackMiddleware/PageCache.php:138 [Drupal\page_cache\StackMiddleware\PageCache->fetch()]
  12. <ROOT>/core/modules/page_cache/src/StackMiddleware/PageCache.php:87 [Drupal\page_cache\StackMiddleware\PageCache->lookup()]
  13. .../asm89/stack-cors/src/Cors.php:53 [Drupal\page_cache\StackMiddleware\PageCache->handle()]
  14. <ROOT>/modules/contrib/shield/src/ShieldMiddleware.php:262 [Asm89\Stack\Cors->handle()]
  15. <ROOT>/modules/contrib/shield/src/ShieldMiddleware.php:129 [Drupal\shield\ShieldMiddleware->bypass()]
  16. <ROOT>/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php:48 [Drupal\shield\ShieldMiddleware->handle()]
  17. <ROOT>/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php:51 [Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()]
  18. <ROOT>/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php:36 [Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()]
  19. <ROOT>/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php:51 [Drupal\Core\StackMiddleware\AjaxPageState->handle()]
  20. <ROOT>/core/lib/Drupal/Core/DrupalKernel.php:741 [Drupal\Core\StackMiddleware\StackedHttpKernel->handle()]
  21. <ROOT>/index.php:19 [Drupal\Core\DrupalKernel->handle()]