ContentModerationState::getOwnerId

public ContentModerationState::getOwnerId() Returns the entity owner's user ID. Return value int|null The owner user ID, or NULL in case the user ID field has not been set on the entity. Overrides EntityOwnerInterface::getOwnerId File core/modules/content_moderation/src/Entity/ContentModerationState.php, line 102 Class ContentModerationState Defines the Content moderation state entity. Namespace Drupal\content_moderation\Entity Code public function getOwnerId() { return $this->ge

ContentModerationState::getOwner

public ContentModerationState::getOwner() Returns the entity owner's user entity. Return value \Drupal\user\UserInterface The owner user entity. Overrides EntityOwnerInterface::getOwner File core/modules/content_moderation/src/Entity/ContentModerationState.php, line 95 Class ContentModerationState Defines the Content moderation state entity. Namespace Drupal\content_moderation\Entity Code public function getOwner() { return $this->get('uid')->entity; }

ContentModerationState::getCurrentUserId

public static ContentModerationState::getCurrentUserId() Default value callback for the 'uid' base field definition. Return value array An array of default values. See also \Drupal\content_moderation\Entity\ContentModerationState::baseFieldDefinitions() File core/modules/content_moderation/src/Entity/ContentModerationState.php, line 144 Class ContentModerationState Defines the Content moderation state entity. Namespace Drupal\content_moderation\Entity Code public static function getC

ContentModerationState::baseFieldDefinitions

public static ContentModerationState::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions f

ContentModerationState

Defines the Content moderation state entity. Plugin annotation @ContentEntityType( id = "content_moderation_state", label = @Translation("Content moderation state"), label_singular = @Translation("content moderation state"), label_plural = @Translation("content moderation states"), label_count = @PluralTranslation( singular = "@count content moderation state", plural = "@count content moderation states" ), handlers = { "storage_schema" = "Drupal\content_moderation\Cont

ContentLanguageSettingsInterface::setTargetBundle

public ContentLanguageSettingsInterface::setTargetBundle($target_bundle) Sets the bundle this config applies to. Parameters string $target_bundle: The bundle. Return value $this File core/modules/language/src/ContentLanguageSettingsInterface.php, line 34 Class ContentLanguageSettingsInterface Provides an interface defining language settings for content entities. Namespace Drupal\language Code public function setTargetBundle($target_bundle);

ContentLanguageSettingsInterface::setLanguageAlterable

public ContentLanguageSettingsInterface::setLanguageAlterable($language_alterable) Sets if the language must be alterable or not. Parameters bool $language_alterable: Flag indicating if the language must be alterable. Return value $this File core/modules/language/src/ContentLanguageSettingsInterface.php, line 61 Class ContentLanguageSettingsInterface Provides an interface defining language settings for content entities. Namespace Drupal\language Code public function setLanguageAltera

ContentLanguageSettingsInterface::setDefaultLangcode

public ContentLanguageSettingsInterface::setDefaultLangcode($default_langcode) Sets the default language code. Parameters string $default_langcode: The default language code. Return value $this File core/modules/language/src/ContentLanguageSettingsInterface.php, line 44 Class ContentLanguageSettingsInterface Provides an interface defining language settings for content entities. Namespace Drupal\language Code public function setDefaultLangcode($default_langcode);

ContentLanguageSettingsInterface::isLanguageAlterable

public ContentLanguageSettingsInterface::isLanguageAlterable() Checks if the language is alterable or not. Return value bool File core/modules/language/src/ContentLanguageSettingsInterface.php, line 68 Class ContentLanguageSettingsInterface Provides an interface defining language settings for content entities. Namespace Drupal\language Code public function isLanguageAlterable();

ContentLanguageSettingsInterface::isDefaultConfiguration

public ContentLanguageSettingsInterface::isDefaultConfiguration() Checks if this config object contains the default values in every property. Return value bool True if all the properties contain the default values. False otherwise. File core/modules/language/src/ContentLanguageSettingsInterface.php, line 76 Class ContentLanguageSettingsInterface Provides an interface defining language settings for content entities. Namespace Drupal\language Code public function isDefaultConfiguration(