AdminController::index

public AdminController::index() Prints a listing of admin tasks, organized by module. Return value array A render array containing the listing. File core/modules/system/src/Controller/AdminController.php, line 18 Class AdminController Controller for admin section. Namespace Drupal\system\Controller Code public function index() { $module_info = system_get_info('module'); foreach ($module_info as $module => $info) { $module_info[$module] = new \stdClass(); $module_info[$m

MemoryStorage

Defines a default key/value store implementation. Hierarchy class \Drupal\Core\KeyValueStore\StorageBase implements KeyValueStoreInterfaceclass \Drupal\Core\KeyValueStore\MemoryStorage File core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description MemoryStorage::$data protected property The actual storage of key-value pairs. MemoryStorage::delete public function Deletes an item from t

PermissionHandler::getModuleNames

protected PermissionHandler::getModuleNames() Returns all module names. Return value string[] Returns the human readable names of all modules keyed by machine name. File core/modules/user/src/PermissionHandler.php, line 223 Class PermissionHandler Provides the available permissions based on yml files. Namespace Drupal\user Code protected function getModuleNames() { $modules = array(); foreach (array_keys($this->moduleHandler->getModuleList()) as $module) { $modules[$modu

content_translation_entity_presave

content_translation_entity_presave(EntityInterface $entity) Implements hook_entity_presave(). File core/modules/content_translation/content_translation.module, line 409 Allows entities to be translated into different languages. Code function content_translation_entity_presave(EntityInterface $entity) { if ($entity instanceof ContentEntityInterface && $entity->isTranslatable() && !$entity->isNew()) { // If we are creating a new translation we need to use the source

GetUntransformedTextCommand::__construct

public GetUntransformedTextCommand::__construct($data) Constructs a GetUntransformedTextCommand object. Parameters string $data: The data to pass on to the client side. Overrides BaseCommand::__construct File core/modules/editor/src/Ajax/GetUntransformedTextCommand.php, line 19 Class GetUntransformedTextCommand AJAX command to rerender a formatted text field without any transformation filters. Namespace Drupal\editor\Ajax Code public function __construct($data) { parent::__construct

template_preprocess_page

template_preprocess_page(&$variables) Prepares variables for the page template. Default template: page.html.twig. See the page.html.twig template for the list of variables. File core/includes/theme.inc, line 1346 The theme system, which controls the output of Drupal. Code function template_preprocess_page(&$variables) { $language_interface = \Drupal::languageManager()->getCurrentLanguage(); foreach (\Drupal::theme()->getActiveTheme()->getRegions() as $region) { if (!

BreadcrumbBuilderInterface::applies

public BreadcrumbBuilderInterface::applies(RouteMatchInterface $route_match) Whether this breadcrumb builder should be used to build the breadcrumb. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value bool TRUE if this builder should be used or FALSE to let other builders decide. File core/lib/Drupal/Core/Breadcrumb/BreadcrumbBuilderInterface.php, line 22 Class BreadcrumbBuilderInterface Defines an interface for classes that build bread

FormElement::processAutocomplete

public static FormElement::processAutocomplete(&$element, FormStateInterface $form_state, &$complete_form) Adds autocomplete functionality to elements. This sets up autocomplete functionality for elements with an #autocomplete_route_name property, using the #autocomplete_route_parameters property if present. For example, suppose your autocomplete route name is 'mymodule.autocomplete' and its path is '/mymodule/autocomplete/{a}/{b}'. In a form array, you would create a text field with pr

FileSystem::validScheme

public FileSystem::validScheme($scheme) Checks that the scheme of a stream URI is valid. Confirms that there is a registered stream handler for the provided scheme and that it is callable. This is useful if you want to confirm a valid scheme without creating a new instance of the registered handler. Parameters string $scheme: A URI scheme, a stream is referenced as "scheme://target". Return value bool Returns TRUE if the string is the name of a validated stream, or FALSE if the scheme does no

ConfigTranslationEntityListBuilder::buildRow

public ConfigTranslationEntityListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilder.php, line 65 Class