EntityType::$render_cache

Indicates whether the rendered output of entities should be cached. Type: bool File core/lib/Drupal/Core/Entity/EntityType.php, line 31 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code protected $render_cache = TRUE;

StatementEmpty::fetchAllKeyed

public StatementEmpty::fetchAllKeyed($key_index = 0, $value_index = 1) Returns the entire result set as a single associative array. This method is only useful for two-column result sets. It will return an associative array where the key is one column from the result set and the value is another field. In most cases, the default of the first two columns is appropriate. Note that this method will run the result set to the end. Parameters $key_index: The numeric index of the field to use as the a

DefaultMenuLinkTreeManipulators::__construct

public DefaultMenuLinkTreeManipulators::__construct(AccessManagerInterface $access_manager, AccountInterface $account, QueryFactory $query_factory) Constructs a \Drupal\Core\Menu\DefaultMenuLinkTreeManipulators object. Parameters \Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager. \Drupal\Core\Session\AccountInterface $account: The current user. \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory. File core/lib/Drupal/Core/Menu/DefaultMen

SqlContentEntityStorage::onFieldStorageDefinitionUpdate

public SqlContentEntityStorage::onFieldStorageDefinitionUpdate(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) Reacts to the update of a field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field being updated. \Drupal\Core\Field\FieldStorageDefinitionInterface $original: The original storage definition; i.e., the definition before the update. Throws \Drupal\Core\Entity\Exception\FieldS

ConfigFactoryInterface::reset

public ConfigFactoryInterface::reset($name = NULL) Resets and re-initializes configuration objects. Internal use only. Parameters string|null $name: (optional) The name of the configuration object to reset. If omitted, all configuration objects are reset. Return value $this File core/lib/Drupal/Core/Config/ConfigFactoryInterface.php, line 62 Class ConfigFactoryInterface Defines the interface for a configuration object factory. Namespace Drupal\Core\Config Code public function reset($

RouteCompiler::compile

public static RouteCompiler::compile(Route $route) Compiles the current route instance. Because so much of the parent class is private, we need to call the parent class's compile() method and then dissect its return value to build our new compiled object. If upstream gets refactored so we can subclass more easily then this may not be necessary. Parameters \Symfony\Component\Routing\Route $route: A Route instance. Return value \Drupal\Core\Routing\CompiledRoute A CompiledRoute instance. Overri

PoStreamReader::open

public PoStreamReader::open() Implements Drupal\Component\Gettext\PoStreamInterface::open(). Opens the stream and reads the header. The stream is ready for reading items after. Throws Exception If the URI is not yet set. Overrides PoStreamInterface::open File core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 152 Class PoStreamReader Implements Gettext PO stream reader. Namespace Drupal\Component\Gettext Code public function open() { if (!empty($this->_uri)) { $this-&

YamlDiscovery::$name

The base filename to look for in each directory. Type: string File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 18 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code protected $name;

ImageStyle::getStreamWrapperManager

protected ImageStyle::getStreamWrapperManager() Gets the stream wrapper manager service. @todo Properly inject this service in Drupal 9.0.x. Return value \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface The stream wrapper manager service File core/modules/image/src/Entity/ImageStyle.php, line 519 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code protected function getStreamWrapperManager() { return \Drupal::service('stream_wrapp

WriteSafeSessionHandlerInterface::setSessionWritable

public WriteSafeSessionHandlerInterface::setSessionWritable($flag) Sets whether or not a session may be written to storage. It is not possible to enforce writing of the session data. This method is only capable of forcibly disabling that session data is written to storage. Parameters bool $flag: TRUE if the session the session is allowed to be written, FALSE otherwise. File core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php, line 20 Class WriteSafeSessionHandlerInterface Pr