ContentEntityBase::hasField

public ContentEntityBase::hasField($field_name) Determines whether the entity has a field with the given name. Parameters string $field_name: The field name. Return value bool TRUE if the entity has a field with the given name. FALSE otherwise. Overrides FieldableEntityInterface::hasField File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 443 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code publ

_batch_queue

_batch_queue($batch_set) Returns a queue object for a batch set. Parameters $batch_set: The batch set. Return value The queue object. Related topics Batch operations Creates and processes batch operations. File core/includes/form.inc, line 932 Functions for form and batch generation and processing. Code function _batch_queue($batch_set) { static $queues; if (!isset($queues)) { $queues = array(); } if (isset($batch_set['queue'])) { $name = $batch_set['queue']['name'];

ConfigurableLanguageManagerInterface::getLanguageConfigOverrideStorage

public ConfigurableLanguageManagerInterface::getLanguageConfigOverrideStorage($langcode) Gets a language configuration override storage object. Parameters string $langcode: The language code for the override. Return value \Drupal\Core\Config\StorageInterface $storage A storage object to use for reading and writing the configuration override. File core/modules/language/src/ConfigurableLanguageManagerInterface.php, line 84 Class ConfigurableLanguageManagerInterface Common interface for lan

ContentTranslationMetadataWrapperInterface::getSource

public ContentTranslationMetadataWrapperInterface::getSource() Retrieves the source language for this translation. Return value string The source language code. File core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 21 Class ContentTranslationMetadataWrapperInterface Common interface for content translation metadata wrappers. Namespace Drupal\content_translation Code public function getSource();

FieldableEntityInterface::validate

public FieldableEntityInterface::validate() Validates the currently set values. Return value \Drupal\Core\Entity\EntityConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded. File core/lib/Drupal/Core/Entity/FieldableEntityInterface.php, line 219 Class FieldableEntityInterface Interface for entities having fields. Namespace Drupal\Core\Entity Code public function validate();

CsrfRequestHeaderAccessCheck::access

public CsrfRequestHeaderAccessCheck::access(Request $request, AccountInterface $account) Checks access. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object. \Drupal\Core\Session\AccountInterface $account: The currently logged in account. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php, line 89 Class CsrfRequestHeaderAccessCheck Access protection against CSRF attacks.

ContentEntityBase::bundle

public ContentEntityBase::bundle() Gets the bundle of the entity. Return value string The bundle of the entity. Defaults to the entity type ID if the entity type does not make use of different bundles. Overrides Entity::bundle File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 429 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function bundle() { return $this->getEntityKey('bundle')

MemoryBackend::register

public MemoryBackend::register($name, $window = 3600, $identifier = NULL) Registers an event for the current visitor to the flood control mechanism. Parameters string $name: The name of an event. To prevent unintended name clashes, it is recommended to use the module name first in the event name, optionally followed by a dot and the actual event name (e.g. "mymodule.my_event"). int $window: (optional) Number of seconds before this event expires. Defaults to 3600 (1 hour). Typically uses the sa

ContentEntityBase::getIterator

public ContentEntityBase::getIterator() File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 545 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function getIterator() { return new \ArrayIterator($this->getFields()); }

checkboxes.html.twig

Default theme implementation for a 'checkboxes' #type form element. Available variables attributes: A list of HTML attributes for the wrapper element. children: The rendered checkboxes. See also template_preprocess_checkboxes() File core/modules/system/templates/checkboxes.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.