CacheableMetadata::getCacheContexts

public CacheableMetadata::getCacheContexts() The cache contexts associated with this object. These identify a specific variation/representation of the object. Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache. Return value string[] An array of cache context tokens, used to generate a cache

ContentEntityBase::isNewRevision

public ContentEntityBase::isNewRevision() Determines whether a new revision should be created on save. Return value bool TRUE if a new revision should be created. Overrides RevisionableInterface::isNewRevision See also \Drupal\Core\Entity\EntityInterface::setNewRevision() File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 287 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function isNew

ChainedFastBackendFactory::get

public ChainedFastBackendFactory::get($bin) Instantiates a chained, fast cache backend class for a given cache bin. Parameters string $bin: The cache bin for which a cache backend object should be returned. Return value \Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin. Overrides CacheFactoryInterface::get File core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php, line 74 Class ChainedFastBackendFactory Defines the chained fast cache

NodeAddAccessCheck

Determines access to for node add pages. Hierarchy class \Drupal\node\Access\NodeAddAccessCheck implements AccessInterface Related topics Node access rights The node access system determines who can do what to which nodes. File core/modules/node/src/Access/NodeAddAccessCheck.php, line 16 Namespace Drupal\node\Access Members Name Modifiers Type Description NodeAddAccessCheck::$entityManager protected property The entity manager. NodeAddAccessCheck::access public f

Editor::getImageUploadSettings

public Editor::getImageUploadSettings() Returns the image upload settings. Return value array A structured array containing image upload settings. Overrides EditorInterface::getImageUploadSettings File core/modules/editor/src/Entity/Editor.php, line 174 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function getImageUploadSettings() { return $this->image_upload; }

BaseFieldDefinition::addPropertyConstraints

public BaseFieldDefinition::addPropertyConstraints($name, array $constraints) Adds constraints for a given field item property. Adds a constraint to a property of a base field item. e.g. // Limit the field item's value property to the range 0 through 10. // e.g. $node->size->value. $field->addPropertyConstraints('value', [ 'Range' => [ 'min' => 0, 'max' => 10, ] ]); If you want to add a validation constraint that applies to the \Drupal\Core\Field\FieldItemList, u

ConfigEntityType::$mergedConfigExport

The result of merging config_export annotation with the defaults. This is stored on the class so that it does not have to be recalculated. Type: array File core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php, line 47 Class ConfigEntityType Provides an implementation of a configuration entity type and its metadata. Namespace Drupal\Core\Config\Entity Code protected $mergedConfigExport = [];

TypedDataManagerInterface::create

public TypedDataManagerInterface::create(DataDefinitionInterface $definition, $value = NULL, $name = NULL, $parent = NULL) Creates a new typed data object instance. Parameters \Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition of the typed data object. For backwards-compatibility an array representation of the data definition may be passed also. mixed $value: (optional) The data value. If set, it has to match one of the supported data type format as documented for

BatchStorageInterface::cleanup

public BatchStorageInterface::cleanup() Cleans up failed or old batches. File core/lib/Drupal/Core/Batch/BatchStorageInterface.php, line 48 Class BatchStorageInterface Defines a common interface for batch storage operations. Namespace Drupal\Core\Batch Code public function cleanup();

Connection::$transactionLayers

Tracks the number of "layers" of transactions currently active. On many databases transactions cannot nest. Instead, we track nested calls to transactions and collapse them into a single transaction. Type: array File core/lib/Drupal/Core/Database/Connection.php, line 53 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $transactionLayers = array();