CronAccessCheck::access

public CronAccessCheck::access($key) Checks access. Parameters string $key: The cron key. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/system/src/Access/CronAccessCheck.php, line 22 Class CronAccessCheck Access check for cron routes. Namespace Drupal\system\Access Code public function access($key) { if ($key != \Drupal::state()->get('system.cron_key')) { \Drupal::logger('cron')->notice('Cron could not run because an invalid k

field_ui_local_tasks_alter

field_ui_local_tasks_alter(&$local_tasks) Implements hook_local_tasks_alter(). File core/modules/field_ui/field_ui.module, line 235 Allows administrators to attach custom fields to fieldable types. Code function field_ui_local_tasks_alter(&$local_tasks) { $container = \Drupal::getContainer(); $local_task = FieldUiLocalTask::create($container, 'field_ui.fields'); $local_task->alterLocalTasks($local_tasks); }

LocalTaskDefault::getCacheTags

public LocalTaskDefault::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides CacheableDependencyInterface::getCacheTags File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 146 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code public function getCacheTags() { if (!isset($this->pluginDefinition['cache_ta

CustomStrings::$settings

The settings read only object. Type: \Drupal\Core\Site\Settings File core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php, line 20 Class CustomStrings String translator using overrides from variables. Namespace Drupal\Core\StringTranslation\Translator Code protected $settings;

CurrentRouteMatch::getRouteMatch

protected CurrentRouteMatch::getRouteMatch(Request $request) Returns the route match for a passed in request. Parameters \Symfony\Component\HttpFoundation\Request $request: A request object. Return value \Drupal\Core\Routing\RouteMatchInterface A route match object created from the request. File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 99 Class CurrentRouteMatch Default object for current_route_match service. Namespace Drupal\Core\Routing Code protected function getRo

tour_page_bottom

tour_page_bottom(array &$page_bottom) Implements hook_page_bottom(). File core/modules/tour/tour.module, line 76 Main functions of the module. Code function tour_page_bottom(array &$page_bottom) { if (!\Drupal::currentUser()->hasPermission('access tour')) { return; } // Load all of the items and match on route name. $route_match = \Drupal::routeMatch(); $route_name = $route_match->getRouteName(); $results = \Drupal::entityQuery('tour') ->condition('route

12 #type uses of View

DisplayPluginBase::buildBasicRenderable in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Builds a basic render array which can be properly render cached. DisplayPluginBase::buildRenderable in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Builds a renderable array of the view. FieldRenderedEntityTest::testRenderedEntityWithField in core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php Tests the rendered entity output with the test f

MenuTreeParameters::setActiveTrail

public MenuTreeParameters::setActiveTrail(array $active_trail) Sets the active trail IDs used to set the inActiveTrail property. @codeCoverageIgnore Parameters string[] $active_trail: An array containing the active trail: a list of menu link plugin IDs. Return value $this See also \Drupal\Core\Menu\MenuActiveTrail::getActiveTrailIds() File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 147 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespac

views-mini-pager.html.twig

Default theme implementation for a views mini-pager. Available variables: items: List of pager items. See also template_preprocess_views_mini_pager() File core/modules/views/templates/views-mini-pager.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

EntityListBuilder::getLabel

protected EntityListBuilder::getLabel(EntityInterface $entity) Gets the label of an entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity being listed. Return value string The entity label. Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.0 Use $entity->label() instead. This method used to escape the entity label. The render system's autoescape is now relied upon. File core/lib/Drupal/Core/Entity/EntityListBuilder.php, line 114 Class EntityListBuild