PagersCacheContext::getCacheableMetadata

public PagersCacheContext::getCacheableMetadata($pager_id = NULL) Gets the cacheability metadata for the context based on the parameter value. There are three valid cases for the returned CacheableMetadata object: An empty object means this can be optimized away safely. A max-age of 0 means that this context can never be optimized away. It will never bubble up and cache tags will not be used. Any non-zero max-age and cache tags will bubble up into the cache item if this is optimized away to all

SiteConfigureForm::$userStorage

The user storage. Type: \Drupal\user\UserStorageInterface File core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php, line 30 Class SiteConfigureForm Provides the site configuration form. Namespace Drupal\Core\Installer\Form Code protected $userStorage;

EntityStorageInterface::getEntityTypeId

public EntityStorageInterface::getEntityTypeId() Gets the entity type ID. Return value string The entity type ID. File core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 181 Class EntityStorageInterface Defines the interface for entity storage classes. Namespace Drupal\Core\Entity Code public function getEntityTypeId();

MenuListBuilder::render

public MenuListBuilder::render() Builds the entity listing as renderable array for table.html.twig. @todo Add a link to add a new item to the #empty text. Overrides EntityListBuilder::render File core/modules/menu_ui/src/MenuListBuilder.php, line 63 Class MenuListBuilder Defines a class to build a listing of menu entities. Namespace Drupal\menu_ui Code public function render() { $build = parent::render(); $build['#attached']['library'][] = "menu_ui/drupal.menu_ui.adminforms"; re

SiteConfigureForm::create

public static SiteConfigureForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servic

StringDatabaseStorage::countTranslations

public StringDatabaseStorage::countTranslations() Counts translations. Return value array The number of translations for each language indexed by language code. Overrides StringStorageInterface::countTranslations File core/modules/locale/src/StringDatabaseStorage.php, line 107 Class StringDatabaseStorage Defines a class to store localized strings in the database. Namespace Drupal\locale Code public function countTranslations() { return $this->dbExecute("SELECT t.language, COUNT(*

ContentEntityBase::getEntityKey

protected ContentEntityBase::getEntityKey($key) Gets the value of the given entity key, if defined. Parameters string $key: Name of the entity key, for example id, revision or bundle. Return value mixed The value of the entity key, NULL if not defined. File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 1088 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code protected function getEntityKey($key) {

Button::processButton

public static Button::processButton(&$element, FormStateInterface $form_state, &$complete_form) Processes a form button element. File core/lib/Drupal/Core/Render/Element/Button.php, line 60 Class Button Provides an action button form element. Namespace Drupal\Core\Render\Element Code public static function processButton(&$element, FormStateInterface $form_state, &$complete_form) { // If this is a button intentionally allowing incomplete form submission // (e.g., a "

DrupalKernel::updateModules

public DrupalKernel::updateModules(array $module_list, array $module_filenames = array()) Implements Drupal\Core\DrupalKernelInterface::updateModules(). @todo Remove obsolete $module_list parameter. Only $module_filenames is needed. Overrides DrupalKernelInterface::updateModules File core/lib/Drupal/Core/DrupalKernel.php, line 759 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function updateModules(array $module_list, array $m

ModuleHandlerInterface::loadInclude

public ModuleHandlerInterface::loadInclude($module, $type, $name = NULL) Loads a module include file. Examples: <?php // Load node.admin.inc from the node module. $this->loadInclude('node', 'inc', 'node.admin'); // Load content_types.inc from the node module. $this->loadInclude('node', 'inc', ''content_types'); ?> Parameters string $module: The module to which the include file belongs. string $type: The include file's type (file extension). string $name: (optional) The base