StringBase::hasLocation

public StringBase::hasLocation($type, $name) Checks whether the string has a given location. Parameters string $type: Location type. string $name: Location name. Return value bool TRUE if the string has a location with this type and name. Overrides StringInterface::hasLocation File core/modules/locale/src/StringBase.php, line 173 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function hasLocation($type, $name) { $locations = $this->get

Timer::read

static public Timer::read($name) Reads the current timer value without stopping the timer. Parameters string $name: The name of the timer. Return value int The current timer value in ms. File core/lib/Drupal/Component/Utility/Timer.php, line 37 Class Timer Provides helpers to use timers throughout a request. Namespace Drupal\Component\Utility Code static public function read($name) { if (isset(static::$timers[$name]['start'])) { $stop = microtime(TRUE); $diff = round(($stop

FieldItemListInterface::generateSampleItems

public FieldItemListInterface::generateSampleItems($count = 1) Populates a specified number of field items with valid sample data. Parameters int $count: The number of items to create. File core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 192 Class FieldItemListInterface Interface for fields, being lists of field items. Namespace Drupal\Core\Field Code public function generateSampleItems($count = 1);

DataType::$description

The description of the data type. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 59 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $description;

BookManager::buildItems

protected BookManager::buildItems(array $tree) Builds the #items property for a book tree's renderable array. Helper function for ::bookTreeOutput(). Parameters array $tree: A data structure representing the tree. Return value array The value to use for the #items property of a renderable menu. File core/modules/book/src/BookManager.php, line 533 Class BookManager Defines a book manager. Namespace Drupal\book Code protected function buildItems(array $tree) { $items = []; foreach

StreamWrapperInterface::HIDDEN

Defines the stream wrapper bit flag for a hidden file. This is not visible in the UI or accessible via web, but readable and writable; for instance, the temporary directory for file uploads. File core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php, line 67 Class StreamWrapperInterface Defines a Drupal stream wrapper extension. Namespace Drupal\Core\StreamWrapper Code const HIDDEN = 0x000C;

Url::getRouteName

public Url::getRouteName() Returns the route name. Return value string Throws \UnexpectedValueException. If this is a URI with no corresponding route. File core/lib/Drupal/Core/Url.php, line 552 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code public function getRouteName() { if ($this->unrouted) { throw new \UnexpectedValueException('External URLs do not have an internal route name.'); } return $this->routeName; }

EntityType::getProvider

public EntityType::getProvider() Gets the name of the provider of this entity type. Return value string The name of the provider of this entity type. Overrides EntityTypeInterface::getProvider File core/lib/Drupal/Core/Entity/EntityType.php, line 394 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getProvider() { return $this->provider; }

SqlContentEntityStorageSchema::deleteSharedTableSchema

protected SqlContentEntityStorageSchema::deleteSharedTableSchema(FieldStorageDefinitionInterface $storage_definition) Deletes the schema for a field stored in a shared table. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field being deleted. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1202 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable

DefaultExceptionSubscriber::__construct

public DefaultExceptionSubscriber::__construct(SerializerInterface $serializer, array $serializer_formats) DefaultExceptionSubscriber constructor. Parameters \Symfony\Component\Serializer\SerializerInterface $serializer: The serializer service. array $serializer_formats: The available serialization formats. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 37 Class DefaultExceptionSubscriber Handles default error responses in serialization formats.