NodeType::setPreviewMode

public NodeType::setPreviewMode($preview_mode) Sets the preview mode. Parameters int $preview_mode: DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED. Overrides NodeTypeInterface::setPreviewMode File core/modules/node/src/Entity/NodeType.php, line 155 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code public function setPreviewMode($preview_mode) { $this->preview_mode = $preview_mode; }

BaseFieldDefinition::create

public static BaseFieldDefinition::create($type) Creates a new field definition. Parameters string $type: The type of the field. Return value static A new field definition object. Overrides ListDataDefinition::create File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 56 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public static function create($type) { $field_definition = new static(array()); $field_definition->type

ConfigEntityBase::__construct

public ConfigEntityBase::__construct(array $values, $entity_type) Constructs an Entity object. Parameters array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. string $entity_type: The type of the entity to create. Overrides Entity::__construct File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 112 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config

PhpBackend::storage

protected PhpBackend::storage() Gets the PHP code storage object to use. Return value \Drupal\Component\PhpStorage\PhpStorageInterface File core/lib/Drupal/Core/Cache/PhpBackend.php, line 251 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code protected function storage() { if (!isset($this->storage)) { $this->storage = PhpStorageFactory::get($this->bin); } return $this->storage; }

Connection::startTransaction

public Connection::startTransaction($name = '') Returns a new DatabaseTransaction object on this connection. Parameters string $name: (optional) The name of the savepoint. Return value \Drupal\Core\Database\Transaction A Transaction object. See also \Drupal\Core\Database\Transaction File core/lib/Drupal/Core/Database/Connection.php, line 1043 Class Connection Base Database API class. Namespace Drupal\Core\Database Code public function startTransaction($name = '') { $class = $this-

ContentEntityNullStorage

Defines a null entity storage. Used for content entity types that have no storage. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Entity\ContentEntityStorageBase implements ContentEntityStorageInterface, DynamicallyFieldableEntityStorageInterfaceclass \Drupal\Core\Entity\ContentEntityNullStorage File core/li

NullBackend::garbageCollection

public NullBackend::garbageCollection() Performs garbage collection on a cache bin. The backend may choose to delete expired or invalidated items. Overrides CacheBackendInterface::garbageCollection File core/lib/Drupal/Core/Cache/NullBackend.php, line 85 Class NullBackend Defines a stub cache implementation. Namespace Drupal\Core\Cache Code public function garbageCollection() { }

LanguageFormBase::$languageManager

The configurable language manager. Type: \Drupal\language\ConfigurableLanguageManagerInterface File core/modules/language/src/Form/LanguageFormBase.php, line 22 Class LanguageFormBase Base form for language add and edit forms. Namespace Drupal\language\Form Code protected $languageManager;

FilterFormatFormBase::$queryFactory

The entity query factory. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/filter/src/FilterFormatFormBase.php, line 21 Class FilterFormatFormBase Provides a base form for a filter format. Namespace Drupal\filter Code protected $queryFactory;

ConfigManager::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/lib/Drupal/Core/Config/ConfigManager.php, line 27 Class ConfigManager The ConfigManager provides helper functions for the configuration system. Namespace Drupal\Core\Config Code protected $entityManager;