ContentTranslationHandler::getTranslationAccess

public ContentTranslationHandler::getTranslationAccess(EntityInterface $entity, $op) Checks if the user can perform the given operation on translations of the wrapped entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity whose translation has to be accessed. $op: The operation to be performed on the translation. Possible values are: "create" "update" "delete" Return value \Drupal\Core\Access\AccessResultInterface The access result. Overrides ContentTranslationHandlerInt

ContentTranslationHandlerInterface::getFieldDefinitions

public ContentTranslationHandlerInterface::getFieldDefinitions() Returns a set of field definitions to be used to store metadata items. Return value \Drupal\Core\Field\FieldDefinitionInterface[] File core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 21 Class ContentTranslationHandlerInterface Interface for providing content translation. Namespace Drupal\content_translation Code public function getFieldDefinitions();

EntityDisplayFormBase::getDisplays

protected EntityDisplayFormBase::getDisplays() Returns entity (form) displays for the current entity display type. Return value \Drupal\Core\Entity\Display\EntityDisplayInterface[] An array holding entity displays or entity form displays. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 839 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code protected function getDisplays() { $load_ids = array(); $display_enti

DataDefinition::getConstraints

public DataDefinition::getConstraints() Returns an array of validation constraints. The validation constraints of a definition consist of any for it defined constraints and default constraints, which are generated based on the definition and its data type. See \Drupal\Core\TypedData\TypedDataManager::getDefaultConstraints(). Constraints are defined via an array, having constraint plugin IDs as key and constraint options as values, e.g. $constraints = array( 'Range' => array('min' => 5,

EntityDefinitionUpdateManager::applyUpdates

public EntityDefinitionUpdateManager::applyUpdates() Applies all the detected valid changes. Use this with care, as it will apply updates for any module, which will lead to unpredictable results. Throws \Drupal\Core\Entity\EntityStorageException This exception is thrown if a change cannot be applied without unacceptable data loss. In such a case, the site administrator needs to apply some other process, such as a custom update function or a migration via the Migrate module. Overrides EntityDef

ViewsData

Provides the content_moderation views integration. Hierarchy class \Drupal\content_moderation\ViewsData uses StringTranslationTrait File core/modules/content_moderation/src/ViewsData.php, line 12 Namespace Drupal\content_moderation Members Name Modifiers Type Description StringTranslationTrait::$stringTranslation protected property The string translation service. StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.

ConfigEntityBase::getOriginalId

public ConfigEntityBase::getOriginalId() Gets the original ID. Return value int|string|null The original ID, or NULL if no ID was set or for entity types that do not support renames. Overrides Entity::getOriginalId File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 126 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code public function getOriginalId() { return $this->originalId; }

SelectExtender::__toString

public SelectExtender::__toString() Returns a string representation of how the query will be executed in SQL. Return value string The Select Query object expressed as a string. Overrides SelectInterface::__toString File core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 475 Class SelectExtender The base extender class for Select queries. Namespace Drupal\Core\Database\Query Code public function __toString() { return (string) $this->query; }

ContentTranslationHandler::addTranslatabilityClue

protected ContentTranslationHandler::addTranslatabilityClue(&$element) Adds a clue about the form element translatability. If the given element does not have a #title attribute, the function is recursively applied to child elements. Parameters array $element: A form element array. File core/modules/content_translation/src/ContentTranslationHandler.php, line 536 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code pr

FieldConfig::getFieldStorageDefinition

public FieldConfig::getFieldStorageDefinition() Returns the field storage definition. Return value \Drupal\Core\Field\FieldStorageDefinitionInterface The field storage definition. Overrides FieldDefinitionInterface::getFieldStorageDefinition File core/modules/field/src/Entity/FieldConfig.php, line 282 Class FieldConfig Defines the Field entity. Namespace Drupal\field\Entity Code public function getFieldStorageDefinition() { if (!$this->fieldStorage) { $fields = $this->enti