DatabaseStorage::ensureTableExists

protected DatabaseStorage::ensureTableExists() Check if the config table exists and create it if not. Return value bool TRUE if the table was created, FALSE otherwise. Throws \Drupal\Core\Config\StorageException If a database error occurs. File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 162 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code protected function ensureTableExists() { try { if (!$this->connection->schema()->tab

EntityDisplayInterface::getComponents

public EntityDisplayInterface::getComponents() Gets the display options for all components. Return value array The array of display options, keyed by component name. File core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php, line 33 Class EntityDisplayInterface Provides a common interface for entity displays. Namespace Drupal\Core\Entity\Display Code public function getComponents();

EntityDisplayInterface::getTargetBundle

public EntityDisplayInterface::getTargetBundle() Gets the bundle to be displayed. Return value string The bundle to be displayed. File core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php, line 119 Class EntityDisplayInterface Provides a common interface for entity displays. Namespace Drupal\Core\Entity\Display Code public function getTargetBundle();

LocaleConfigManager::processTranslatableData

protected LocaleConfigManager::processTranslatableData($name, array $active, array $translatable, $langcode) Process the translatable data array with a given language. If the given language is translatable, will return the translated copy which will only contain strings that had translations. If the given language is English and is not translatable, will return a simplified array of the English source strings only. Parameters string $name: The configuration name. array $active: The active conf

EntityFormInterface::getEntity

public EntityFormInterface::getEntity() Gets the form entity. The form entity which has been used for populating form element defaults. Return value \Drupal\Core\Entity\EntityInterface The current form entity. File core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 42 Class EntityFormInterface Defines an interface for entity form classes. Namespace Drupal\Core\Entity Code public function getEntity();

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

UpdateManager::$projects

An array of installed and enabled projects. Type: array File core/modules/update/src/UpdateManager.php, line 47 Class UpdateManager Default implementation of UpdateManagerInterface. Namespace Drupal\update Code protected $projects;

DateTimePlus::prepareTimezone

protected DateTimePlus::prepareTimezone($timezone) Prepares the input timezone value. Changes the timezone before trying to use it, if necessary. Most importantly, makes sure there is a valid timezone object before moving further. Parameters mixed $timezone: Either a timezone name or a timezone object or NULL. Return value \DateTimeZone The massaged time zone. File core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 390 Class DateTimePlus Wraps DateTime(). Namespace Drupal\Compo

ConfigFactory::__construct

public ConfigFactory::__construct(StorageInterface $storage, EventDispatcherInterface $event_dispatcher, TypedConfigManagerInterface $typed_config) Constructs the Config factory. Parameters \Drupal\Core\Config\StorageInterface $storage: The configuration storage engine. \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: An event dispatcher instance to use for configuration events. \Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed configuration

ShortcutSetInterface::getShortcuts

public ShortcutSetInterface::getShortcuts() Returns all the shortcuts from a shortcut set sorted correctly. Return value \Drupal\shortcut\ShortcutInterface[] An array of shortcut entities. File core/modules/shortcut/src/ShortcutSetInterface.php, line 30 Class ShortcutSetInterface Provides an interface defining a shortcut set entity. Namespace Drupal\shortcut Code public function getShortcuts();