ControllerBase::cache

protected ControllerBase::cache($bin = 'default') Returns the requested cache bin. Parameters string $bin: (optional) The cache bin for which the cache object should be returned, defaults to 'default'. Return value \Drupal\Core\Cache\CacheBackendInterface The cache object associated with the specified bin. File core/lib/Drupal/Core/Controller/ControllerBase.php, line 172 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected func

DrupalTranslator

Translates strings using Drupal's translation system. This class is used by the Symfony validator to translate violation messages. Hierarchy class \Drupal\Core\Validation\DrupalTranslator implements TranslatorInterface File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 13 Namespace Drupal\Core\Validation Members Name Modifiers Type Description DrupalTranslator::$locale protected property The locale used for translating. DrupalTranslator::getLocale public

UserInterface::isActive

public UserInterface::isActive() Returns TRUE if the user is active. Return value bool TRUE if the user is active, false otherwise. File core/modules/user/src/UserInterface.php, line 128 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function isActive();

TranslatorInterface::getStringTranslation

public TranslatorInterface::getStringTranslation($langcode, $string, $context) Retrieves English string to given language. Parameters string $langcode: Language code to translate to. string $string: The source string. string $context: The string context. Return value string|false Translated string if there is a translation, FALSE if not. File core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php, line 23 Class TranslatorInterface Interface for objects capable of strin

LanguageManager::getConfigOverrideLanguage

public LanguageManager::getConfigOverrideLanguage() Gets the current configuration override language. Return value \Drupal\Core\Language\LanguageInterface The current configuration override language. Overrides LanguageManagerInterface::getConfigOverrideLanguage File core/lib/Drupal/Core/Language/LanguageManager.php, line 369 Class LanguageManager Class responsible for providing language support on language-unaware sites. Namespace Drupal\Core\Language Code public function getConfigOve

_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'];

FormState::has

public FormState::has($property) Determines if an arbitrary property is present. Parameters string $property: Properties are often stored as multi-dimensional associative arrays. If $property is a string, it will return isset($storage[$property]). If $property is an array, each element of the array will be used as a nested key. If $property = ['foo', 'bar'] it will return isset($storage['foo']['bar']). Overrides FormStateInterface::has File core/lib/Drupal/Core/Form/FormState.php, line 930

BlockManagerInterface

Provides an interface for the discovery and instantiation of block plugins. Hierarchy interface \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface; interface \Drupal\Component\Plugin\CategorizingPluginManagerInterfaceinterface \Drupal\Core\Block\BlockManagerInterface File core/lib/Drupal/Core/Block/BlockManagerInterface.php, line 11 Namespace Drupal\Core\Block Members Name Modifiers Type Description CategorizingPluginManagerInterface::getCategories public func

views-view-table.html.twig

Default theme implementation for displaying a view as a table. Available variables: attributes: Remaining HTML attributes for the element. class: HTML classes that can be used to style contextually through CSS. title : The title of this group of rows. header: The table header columns. attributes: Remaining HTML attributes for the element. content: HTML classes to apply to each header cell, indexed by the header's key. default_classes: A flag indicating whether default classes should be

MenuLinkDefaultForm::validateConfigurationForm

public MenuLinkDefaultForm::validateConfigurationForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormInterface::validateCo