FieldConfigBase::getItemDefinition

public FieldConfigBase::getItemDefinition() Gets the data definition of an item of the list. Return value \Drupal\Core\TypedData\DataDefinitionInterface A data definition describing the list items. Overrides ListDataDefinitionInterface::getItemDefinition File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 514 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function getItemDefinition() { if (!isset($this->itemDefin

Query::addSort

protected Query::addSort() Adds the sort to the build query. Return value \Drupal\Core\Entity\Query\Sql\Query Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 165 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code protected function addSort() { if ($this->count) { $this->sort = array(); } // Gather the SQL field aliases first to make sure every field table // necessary is added. This might

FieldConfigBase::getName

public FieldConfigBase::getName() Returns the machine name of the field. This defines how the field data is accessed from the entity. For example, if the field name is "foo", then $entity->foo returns its data. Return value string The field name. Overrides FieldDefinitionInterface::getName File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 193 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function getName() { r

config_translation_config_schema_info_alter

config_translation_config_schema_info_alter(&$definitions) Implements hook_config_schema_info_alter(). File core/modules/config_translation/config_translation.module, line 179 Configuration Translation module. Code function config_translation_config_schema_info_alter(&$definitions) { $map = array( 'label' => '\Drupal\config_translation\FormElement\Textfield', 'text' => '\Drupal\config_translation\FormElement\Textarea', 'date_format' => '\Drupal\config_translatio

QueryAggregate::conditionAggregateGroupFactory

public QueryAggregate::conditionAggregateGroupFactory($conjunction = 'AND') Creates an object holding a group of conditions. See andConditionAggregateGroup() and orConditionAggregateGroup() for more. Parameters string $conjunction: AND (default): this is the equivalent of andConditionAggregateGroup(). OR: this is the equivalent of andConditionAggregateGroup(). Return value ConditionInterface An object holding a group of conditions. Overrides QueryAggregateInterface::conditionAggregateGrou

FieldConfigBase::setDescription

public FieldConfigBase::setDescription($description) Sets a human readable description. Descriptions are usually used on user interfaces where the data is edited or displayed. Parameters string $description: The description for this field. Return value $this Overrides FieldConfigInterface::setDescription File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 311 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function se

ThemeSettingsForm::validatePath

protected ThemeSettingsForm::validatePath($path) Helper function for the system_theme_settings form. Attempts to validate normal system paths, paths relative to the public files directory, or stream wrapper URIs. If the given path is any of the above, returns a valid path or URI that the theme system can display. Parameters string $path: A path relative to the Drupal root or to the public files directory, or a stream wrapper URI. Return value mixed A valid path that can be displayed through t

MemoryBackend::removeBin

public MemoryBackend::removeBin() Remove a cache bin. Overrides CacheBackendInterface::removeBin File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 195 Class MemoryBackend Defines a memory cache implementation. Namespace Drupal\Core\Cache Code public function removeBin() { $this->cache = []; }

EntityTypeInterface::getOriginalClass

public EntityTypeInterface::getOriginalClass() Gets the name of the original entity type class. In case the class name was changed with setClass(), this will return the initial value. Useful when trying to identify the entity type ID based on the class. Return value string The name of the original entity type class. File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 76 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core

ConfigEntityBase::preDelete

public static ConfigEntityBase::preDelete(EntityStorageInterface $storage, array $entities) Acts on entities before they are deleted and before hooks are invoked. Used before the entities are deleted and before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::preDelete File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 580