BaseFieldDefinition::setRevisionable

public BaseFieldDefinition::setRevisionable($revisionable) Sets whether the field is revisionable. Parameters bool $revisionable: Whether the field is revisionable. Return value $this The object itself for chaining. File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 249 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public function setRevisionable($revisionable) { $this->definition['revisionable'] = $revisionable; retu

ShortcutSetStorage

Defines a storage for shortcut_set entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterfaceclass \Drupal\shortcut\ShortcutSetStorage implements ShortcutSetStorageInterface File core/modules/shortcut/sr

template_preprocess_file_widget_multiple

template_preprocess_file_widget_multiple(&$variables) Prepares variables for multi file form widget templates. Default template: file-widget-multiple.html.twig. Parameters array $variables: An associative array containing: element: A render element representing the widgets. File core/modules/file/file.field.inc, line 21 Field module functionality for the File module. Code function template_preprocess_file_widget_multiple(&$variables) { $element = $variables['element']; // Spe

ContentEntityFormInterface::isDefaultFormLangcode

public ContentEntityFormInterface::isDefaultFormLangcode(FormStateInterface $form_state) Checks whether the current form language matches the entity one. Parameters \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value bool Returns TRUE if the entity form language matches the entity one. File core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php, line 59 Class ContentEntityFormInterface Defines a common interface for content entity form classe

DatabaseLockBackend::acquire

public DatabaseLockBackend::acquire($name, $timeout = 30.0) Acquires a lock. Parameters string $name: Lock name. Limit of name's length is 255 characters. float $timeout: (optional) Lock lifetime in seconds. Defaults to 30.0. Return value bool Overrides LockBackendInterface::acquire File core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 44 Class DatabaseLockBackend Defines the database lock backend. This is the default backend in Drupal. Namespace Drupal\Core\Lock Code public f

UpdateSettingsForm::$emailValidator

The email validator. Type: \Egulias\EmailValidator\EmailValidator File core/modules/update/src/UpdateSettingsForm.php, line 21 Class UpdateSettingsForm Configure update settings for this site. Namespace Drupal\update Code protected $emailValidator;

InvalidLibraryFileException

Defines an exception if the library file could not be parsed. Hierarchy class \Drupal\Core\Asset\Exception\InvalidLibraryFileException extends \RunTimeException File core/lib/Drupal/Core/Asset/Exception/InvalidLibraryFileException.php, line 8 Namespace Drupal\Core\Asset\Exception Members

NullBackend::set

public NullBackend::set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) Stores data in the persistent cache. Core cache implementations set the created time on cache item with microtime(TRUE) rather than REQUEST_TIME_FLOAT, because the created time of cache items should match when they are created, not when the request started. Apart from being more accurate, this increases the chance an item will legitimately be considered valid. Parameters string $cid: The cache ID of the dat

ContentTranslationManager::isEnabled

public ContentTranslationManager::isEnabled($entity_type_id, $bundle = NULL) Determines whether the given entity type is translatable. @returns bool TRUE if the specified bundle is translatable. If no bundle is provided returns TRUE if at least one of the entity bundles is translatable. Parameters string $entity_type_id: The type of the entity. string $bundle: (optional) The bundle of the entity. If no bundle is provided, all the available bundles are checked. Overrides ContentTranslationManag

EntityType::getListBuilderClass

public EntityType::getListBuilderClass() Gets the list class. Return value string The class for this entity type's list. Overrides EntityTypeInterface::getListBuilderClass File core/lib/Drupal/Core/Entity/EntityType.php, line 530 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getListBuilderClass() { return $this->getHandlerClass('list_builder'); }