ContentEntityBase::getIterator

public ContentEntityBase::getIterator() File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 545 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function getIterator() { return new \ArrayIterator($this->getFields()); }

ContentEntityBase::setValidationRequired

public ContentEntityBase::setValidationRequired($required) Sets whether entity validation is required before saving the entity. Parameters bool $required: TRUE if validation is required, FALSE otherwise. Return value $this Overrides FieldableEntityInterface::setValidationRequired File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 387 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public functi

BlockBase::setConfigurationValue

public BlockBase::setConfigurationValue($key, $value) Sets a particular value in the block settings. @todo This doesn't belong here. Move this into a new base class in https://www.drupal.org/node/1764380. @todo This does not set a value in \Drupal::config(), so the name is confusing. Parameters string $key: The key of PluginBase::$configuration to set. mixed $value: The value to set for the provided key. Overrides BlockPluginInterface::setConfigurationValue See also \Drupal\Component\Plugin\P

ConstraintManager::__construct

public ConstraintManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct(). Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. \Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use. \Drupal\Core\Extensi

NodeType::isLocked

public NodeType::isLocked() Determines whether the node type is locked. Return value string|false The module name that locks the type or FALSE. Overrides NodeTypeInterface::isLocked File core/modules/node/src/Entity/NodeType.php, line 112 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code public function isLocked() { $locked = \Drupal::state()->get('node.type.locked'); return isset($locked[$this->id()]) ? $locked[$this->id()] : FA

EntityType::getLowercaseLabel

public EntityType::getLowercaseLabel() Gets the lowercase form of the human-readable entity type name. Return value string The lowercase form of the human-readable entity type name. Overrides EntityTypeInterface::getLowercaseLabel File core/lib/Drupal/Core/Entity/EntityType.php, line 738 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getLowercaseLabel() { return Unicode::strtolower($this->getLabel(

ComplexDataInterface::get

public ComplexDataInterface::get($property_name) Gets a property object. Parameters $property_name: The name of the property to get; e.g., 'title' or 'name'. Return value \Drupal\Core\TypedData\TypedDataInterface The property object. Throws \InvalidArgumentException If an invalid property name is given. \Drupal\Core\TypedData\Exception\MissingDataException If the complex data structure is unset and no property can be created. File core/lib/Drupal/Core/TypedData/ComplexDataInterface.php, line

Number

Provides helper methods for manipulating numbers. Hierarchy class \Drupal\Component\Utility\Number Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/Number.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description Number::alphadecimalToInt public static function Decodes a sorting code back to an integer. Number::intToAlphadecimal public static

MenuActiveTrailInterface

Defines an interface for the active menu trail service. The active trail of a given menu is the trail from the current page to the root of that menu's tree. Hierarchy interface \Drupal\Core\Menu\MenuActiveTrailInterface File core/lib/Drupal/Core/Menu/MenuActiveTrailInterface.php, line 11 Namespace Drupal\Core\Menu Members Name Modifiers Type Description MenuActiveTrailInterface::getActiveLink public function Fetches a menu link which matches the route name, parameters an

EntityManager::getAllFormModes

public EntityManager::getAllFormModes() Overrides EntityDisplayRepositoryInterface::getAllFormModes Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 295 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function getAllFormModes() { return $this->container->get('entity_display.repository')->getAllFormModes(); }