EntityReferenceFieldItemList::processDefaultValue

public static EntityReferenceFieldItemList::processDefaultValue($default_value, FieldableEntityInterface $entity, FieldDefinitionInterface $definition) Processes the default value before being applied. Defined or configured default values of a field might need some processing in order to be a valid runtime value for the field type; e.g., a date field could process the defined value of 'NOW' to a valid date. Parameters array $default_value: The unprocessed default value defined for the field, a

EntityTypeManager::__construct

public EntityTypeManager::__construct(\Traversable $namespaces, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache, TranslationInterface $string_translation, ClassResolverInterface $class_resolver) Constructs a new Entity plugin manager. 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\Extension\ModuleHandlerInterface $module_handler:

ConfigNamesMapper::getConfigNames

public ConfigNamesMapper::getConfigNames() Returns an array of configuration names for the mapper. Return value array An array of configuration names for the mapper. Overrides ConfigMapperInterface::getConfigNames File core/modules/config_translation/src/ConfigNamesMapper.php, line 348 Class ConfigNamesMapper Configuration mapper base implementation. Namespace Drupal\config_translation Code public function getConfigNames() { return $this->pluginDefinition['names']; }

PoReaderInterface::readItem

public PoReaderInterface::readItem() Reads and returns a PoItem (source/translation pair). Return value \Drupal\Component\Gettext\PoItem Wrapper for item data instance. File core/lib/Drupal/Component/Gettext/PoReaderInterface.php, line 16 Class PoReaderInterface Shared interface definition for all Gettext PO Readers. Namespace Drupal\Component\Gettext Code public function readItem();

EntityTypeBundleInfo::__construct

public EntityTypeBundleInfo::__construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, TypedDataManagerInterface $typed_data_manager, CacheBackendInterface $cache_backend) Constructs a new EntityTypeBundleInfo. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager. \Drupal

Datetime::formatExample

public static Datetime::formatExample($format) Creates an example for a date format. This is centralized for a consistent method of creating these examples. Parameters string $format: Return value string File core/lib/Drupal/Core/Datetime/Element/Datetime.php, line 372 Class Datetime Provides a datetime element. Namespace Drupal\Core\Datetime\Element Code public static function formatExample($format) { if (!static::$dateExample) { static::$dateExample = new DrupalDateTime();

PathElement::CONVERT_ROUTE

Convert the submitted value into a route name and parameter pair. File core/lib/Drupal/Core/Render/Element/PathElement.php, line 26 Class PathElement Provides a matched path render element. Namespace Drupal\Core\Render\Element Code const CONVERT_ROUTE = 1;

Registry::setThemeManager

public Registry::setThemeManager(ThemeManagerInterface $theme_manager) Sets the theme manager. Parameters \Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager. File core/lib/Drupal/Core/Theme/Registry.php, line 177 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code public function setThemeManager(ThemeManagerInterface $theme_manager) { $this->themeManager = $theme_manager; }

SwitchShortcutSet::getFormId

public SwitchShortcutSet::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 53 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public function getFormId() { return 'shortcut_set_switch'; }

Connection::handleQueryException

protected Connection::handleQueryException(\PDOException $e, $query, array $args = array(), $options = array()) Wraps and re-throws any PDO exception thrown by static::query(). Parameters \PDOException $e: The exception thrown by static::query(). $query: The query executed by static::query(). array $args: An array of arguments for the prepared statement. array $options: An associative array of options to control how the query is run. Return value \Drupal\Core\Database\StatementInterface|int|n