Typed Data API

API for describing data based on a set of available data types. PHP has data types, such as int, string, float, array, etc., and it is an object-oriented language that lets you define classes and interfaces. However, in some cases, it is useful to be able to define an abstract type (as in an interface, free of implementation details), that still has properties (which an interface cannot) as well as meta-data. The Typed Data API provides this abstraction. Overview Each data type in the Typed Dat

ThemeRegistry::has

public ThemeRegistry::has($key) Returns whether data exists for this key. Parameters string $key: Key that identifies the data. Overrides CacheCollector::has File core/lib/Drupal/Core/Utility/ThemeRegistry.php, line 94 Class ThemeRegistry Builds the run-time theme registry. Namespace Drupal\Core\Utility Code public function has($key) { // Since the theme registry allows for theme hooks to be requested that // are not registered, just check the existence of the key in the registry.

ConfigFactory::get

public ConfigFactory::get($name) Returns an immutable configuration object for a given name. Parameters string $name: The name of the configuration object to construct. Return value \Drupal\Core\Config\ImmutableConfig A configuration object. Overrides ConfigFactoryInterface::get File core/lib/Drupal/Core/Config/ConfigFactory.php, line 88 Class ConfigFactory Defines the configuration object factory. Namespace Drupal\Core\Config Code public function get($name) { return $this->doGe

NullStorage::read

public NullStorage::read($name) Reads configuration data from the storage. Parameters string $name: The name of a configuration object to load. Return value array|bool The configuration data stored for the configuration object name. If no configuration data exists for the given name, FALSE is returned. Overrides StorageInterface::read File core/lib/Drupal/Core/Config/NullStorage.php, line 31 Class NullStorage Defines a stub storage. Namespace Drupal\Core\Config Code public function r

LanguageInterface::DIRECTION_LTR

Language written left to right. Possible value of $language->direction. File core/lib/Drupal/Core/Language/LanguageInterface.php, line 92 Class LanguageInterface Defines a language. Namespace Drupal\Core\Language Code const DIRECTION_LTR = 'ltr';

Connection::rollback

public Connection::rollback($savepoint_name = 'drupal_transaction') Rolls back the transaction entirely or to a named savepoint. This method throws an exception if no transaction is active. Parameters string $savepoint_name: (optional) The name of the savepoint. The default, 'drupal_transaction', will roll the entire transaction back. Throws \Drupal\Core\Database\TransactionOutOfOrderException \Drupal\Core\Database\TransactionNoActiveException See also \Drupal\Core\Database\Transaction::roll

ContextualLinkManager::getContextualLinksArrayByGroup

public ContextualLinkManager::getContextualLinksArrayByGroup($group_name, array $route_parameters, array $metadata = array()) Gets the contextual links prepared as expected by links.html.twig. Parameters string $group_name: The group name. array $route_parameters: The incoming route parameters. The route parameters need to have the same name on all contextual link routes, e.g. you cannot use 'node' and 'entity' in parallel. array $metadata: Additional metadata of contextual links, like the pos

ConfigEvents::RENAME

Name of the event fired when renaming a configuration object. This event allows modules to perform an action whenever a configuration object's name is changed. The event listener method receives a \Drupal\Core\Config\ConfigRenameEvent instance. See hook_update_N() documentation for safe configuration API usage and restrictions as this event will be fired when configuration is renamed by hook_update_N(). See also \Drupal\Core\Config\ConfigRenameEvent \Drupal\Core\Config\ConfigFactoryInterface::

TypedDataManager::getValidationConstraintManager

public TypedDataManager::getValidationConstraintManager() Gets the validation constraint manager. Return value \Drupal\Core\Validation\ConstraintManager The constraint manager. Overrides TypedDataManagerInterface::getValidationConstraintManager File core/lib/Drupal/Core/TypedData/TypedDataManager.php, line 234 Class TypedDataManager Manages data type plugins. Namespace Drupal\Core\TypedData Code public function getValidationConstraintManager() { return $this->constraintManager; }

editor.module

Adds bindings for client-side "text editors" to text formats. File core/modules/editor/editor.module Functions Name Description editor_element_info_alter Implements hook_element_info_alter(). editor_entity_delete Implements hook_entity_delete(). editor_entity_insert Implements hook_entity_insert(). editor_entity_revision_delete Implements hook_entity_revision_delete(). editor_entity_update Implements hook_entity_update(). editor_field_formatter_info_alter Implement