ConfigEntityIdLengthException

Defines an exception thrown when a configuration entity ID is too long. Hierarchy class \Drupal\Core\Config\ConfigException extends \RuntimeExceptionclass \Drupal\Core\Config\Entity\Exception\ConfigEntityIdLengthException File core/lib/Drupal/Core/Config/Entity/Exception/ConfigEntityIdLengthException.php, line 10 Namespace Drupal\Core\Config\Entity\Exception Members

ConfigEntityDependency::__construct

public ConfigEntityDependency::__construct($name, $values = []) Constructs the configuration entity dependency from the entity values. Parameters string $name: The configuration entity's configuration object name. array $values: (optional) The configuration entity's values. File core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php, line 36 Class ConfigEntityDependency Provides a value object to discover configuration dependencies. Namespace Drupal\Core\Config\Entity Code publ

ConfigEntityDependency::hasDependency

public ConfigEntityDependency::hasDependency($type, $name) Determines if the entity is dependent on extensions or entities. Parameters string $type: The type of dependency being checked. Either 'module', 'theme', 'config' or 'content'. string $name: The specific name to check. If $type equals 'module' or 'theme' then it should be a module name or theme name. In the case of entity it should be the full configuration object name. Return value bool File core/lib/Drupal/Core/Config/Entity/ConfigE

ConfigEntityDependency::getDependencies

public ConfigEntityDependency::getDependencies($type) Gets the configuration entity's dependencies of the supplied type. Parameters string $type: The type of dependency to return. Either 'module', 'theme', 'config' or 'content'. Return value array The list of dependencies of the supplied type. File core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php, line 59 Class ConfigEntityDependency Provides a value object to discover configuration dependencies. Namespace Drupal\Core\Con

ConfigEntityDependency::getConfigDependencyName

public ConfigEntityDependency::getConfigDependencyName() Gets the configuration entity's configuration dependency name. Return value string The configuration dependency name for the entity. See also \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() File core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php, line 99 Class ConfigEntityDependency Provides a value object to discover configuration dependencies. Namespace Drupal\Core\Config\Entity Code public function

ConfigEntityDependency::$name

The configuration entity's configuration object name. Type: string File core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php, line 19 Class ConfigEntityDependency Provides a value object to discover configuration dependencies. Namespace Drupal\Core\Config\Entity Code protected $name;

ConfigEntityDependency::$dependencies

The configuration entity's dependencies. Type: array File core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php, line 26 Class ConfigEntityDependency Provides a value object to discover configuration dependencies. Namespace Drupal\Core\Config\Entity Code protected $dependencies = [];

ConfigEntityDependency

Provides a value object to discover configuration dependencies. Hierarchy class \Drupal\Core\Config\Entity\ConfigEntityDependency See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php, line 12 Namespace Drupal\Core\Config\Entity Members Name Modifiers Type Description ConfigEntityDependency::$dependencies protected property The configuration entity's dependencies. ConfigEntityDependency::$name

ConfigEntityBundleBase::preSave

public ConfigEntityBundleBase::preSave(EntityStorageInterface $storage) Acts on an entity before the presave hook is invoked. Used before the entity is saved and before invoking the presave hook. Ensure that config entities which are bundles of other entities cannot have their ID changed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. Throws \Drupal\Core\Config\ConfigNameException Thrown when attempting to rename a bundle entity. Overrides ConfigEnt

ConfigEntityBundleBase::postSave

public ConfigEntityBundleBase::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage