EntityTypeInfo

Manipulates entity type information.

This class contains primarily bridged hooks for compile-time or cache-clear-time hooks. Runtime hooks should be placed in EntityOperations.

Hierarchy

File

core/modules/content_moderation/src/EntityTypeInfo.php, line 34

Namespace

Drupal\content_moderation

Members

Name Modifiers Type Description
EntityTypeInfo::$currentUser protected property The current user.
EntityTypeInfo::$entityTypeManager protected property The entity type manager.
EntityTypeInfo::$moderationHandlers protected property A keyed array of custom moderation handlers for given entity types.
EntityTypeInfo::$moderationInfo protected property The moderation information service.
EntityTypeInfo::addModerationToEntity protected function Modifies an entity definition to include moderation support.
EntityTypeInfo::addModerationToEntityType protected function Configures moderation configuration support on a entity type definition.
EntityTypeInfo::bundleFormRedirect public static function Redirect content entity edit forms on save, if there is a forward revision.
EntityTypeInfo::create public static function Instantiates a new instance of this class. Overrides ContainerInjectionInterface::create
EntityTypeInfo::entityBaseFieldInfo public function Adds base field info to an entity type.
EntityTypeInfo::entityBundleFieldInfoAlter public function Adds ModerationState constraint to bundles whose entities are moderated.
EntityTypeInfo::entityExtraFieldInfo public function Gets the "extra fields" for a bundle.
EntityTypeInfo::entityOperation public function Adds an operation on bundles that should have a Moderation form.
EntityTypeInfo::entityTypeAlter public function Adds Moderation configuration to appropriate entity types.
EntityTypeInfo::filterNonRevisionableEntityTypes protected function Filters entity type lists to return only revisionable entity types.
EntityTypeInfo::formAlter public function Alters bundle forms to enforce revision handling.
EntityTypeInfo::getModeratedBundles protected function Returns an iterable list of entity names and bundle names under moderation.
EntityTypeInfo::__construct public function EntityTypeInfo constructor.
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
doc_Drupal
2016-10-29 09:08:15
Comments
Leave a Comment

Please login to continue.