PublicStream::getDirectoryPath

public PublicStream::getDirectoryPath() Gets the path that the wrapper is responsible for. @todo Review this method name in D8 per https://www.drupal.org/node/701358. Return value string String specifying the path. Overrides LocalStream::getDirectoryPath File core/lib/Drupal/Core/StreamWrapper/PublicStream.php, line 42 Class PublicStream Defines a Drupal public (public://) stream wrapper class. Namespace Drupal\Core\StreamWrapper Code public function getDirectoryPath() { return stat

DateFormat

Defines the date format element for the configuration translation interface. Hierarchy class \Drupal\config_translation\FormElement\FormElementBase implements ElementInterface uses StringTranslationTraitclass \Drupal\config_translation\FormElement\DateFormat File core/modules/config_translation/src/FormElement/DateFormat.php, line 10 Namespace Drupal\config_translation\FormElement Members Name Modifiers Type Description DateFormat::getTranslationElement public function

NodeStorageSchema::getEntitySchema

protected NodeStorageSchema::getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) Gets the entity schema for the specified entity type. Entity types may override this method in order to optimize the generated schema of the entity tables. However, only cross-field optimizations should be added here; e.g., an index spanning multiple fields. Optimizations that apply to a single field have to be added via SqlContentEntityStorageSchema::getSharedTableFieldSchema() instead. Parame

Node::$in_preview

Whether the node is being previewed or not. The variable is set to public as it will give a considerable performance improvement. See https://www.drupal.org/node/2498919. TRUE if the node is being previewed and NULL if it is not. Type: true|null File core/modules/node/src/Entity/Node.php, line 86 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public $in_preview = NULL;

Memory::__construct

public Memory::__construct($name) Constructs a Memory object. Parameters string $name: An arbitrary string. The name of the queue to work with. File core/lib/Drupal/Core/Queue/Memory.php, line 35 Class Memory Static queue implementation. Namespace Drupal\Core\Queue Code public function __construct($name) { $this->queue = array(); $this->idSequence = 0; }

Session

Wrap session logic around a HTTP request. Note, the session service is not injected into this class in order to prevent premature initialization of session storage (database). Instead the session service is retrieved from the container only when handling the request. Hierarchy class \Drupal\Core\StackMiddleware\Session implements HttpKernelInterface uses ContainerAwareTrait File core/lib/Drupal/Core/StackMiddleware/Session.php, line 16 Namespace Drupal\Core\StackMiddleware Members Nam

StringStorageInterface::findString

public StringStorageInterface::findString(array $conditions) Loads a string source object, fast query. These 'fast query' methods are the ones in the critical path and their implementation must be optimized for speed, as they may run many times in a single page request. Parameters array $conditions: (optional) Array with conditions that will be used to filter the strings returned and may include all of the conditions defined by getStrings(). Return value \Drupal\locale\SourceString|null Minim

hook_theme_suggestions_HOOK_alter

hook_theme_suggestions_HOOK_alter(array &$suggestions, array $variables) Alters named suggestions for a specific theme hook. This hook allows any module or theme to provide alternative theme function or template name suggestions and reorder or remove suggestions provided by hook_theme_suggestions_HOOK() or by earlier invocations of this hook. HOOK is the least-specific version of the hook being called. For example, if '#theme' => 'node__article' is called, then node_theme_suggestions_nod

QueryFactory::__construct

public QueryFactory::__construct(EntityManagerInterface $entity_manager) Constructs a QueryFactory object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager used by the query. File core/lib/Drupal/Core/Entity/Query/QueryFactory.php, line 37 Class QueryFactory Factory class Creating entity query objects. Namespace Drupal\Core\Entity\Query Code public function __construct(EntityManagerInterface $entity_manager) { $this->entityManager = $entit

DrupalKernel::guessApplicationRoot

protected static DrupalKernel::guessApplicationRoot() Determine the application root directory based on assumptions. Return value string The application root. File core/lib/Drupal/Core/DrupalKernel.php, line 301 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected static function guessApplicationRoot() { return dirname(dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__)))); }