ControllerBase::$entityTypeManager

The entity type manager. Type: \Drupal\Core\Entity\EntityTypeManagerInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 54 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected $entityTypeManager;

ControllerBase::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 47 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected $entityManager;

ControllerBase::$entityFormBuilder

The entity form builder. Type: \Drupal\Core\Entity\EntityFormBuilderInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 61 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected $entityFormBuilder;

ControllerBase::$currentUser

The current user service. Type: \Drupal\Core\Session\AccountInterface File core/lib/Drupal/Core/Controller/ControllerBase.php, line 89 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected $currentUser;

ControllerBase::$configFactory

The configuration factory. Type: \Drupal\Core\Config\Config File core/lib/Drupal/Core/Controller/ControllerBase.php, line 75 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected $configFactory;

ControllerBase

Utility base class for thin controllers. Controllers that use this base class have access to a number of utility methods and to the Container, which can greatly reduce boilerplate dependency handling code. However, it also makes the class considerably more difficult to unit test. Therefore this base class should only be used by controller classes that contain only trivial glue code. Controllers that contain sufficiently complex logic that it's worth testing should not use this base class but us

contextual_views_data_alter

contextual_views_data_alter(&$data) Implements hook_views_data_alter(). File core/modules/contextual/contextual.views.inc, line 11 Provide views data for contextual.module. Code function contextual_views_data_alter(&$data) { $data['views']['contextual_links'] = array( 'title' => t('Contextual Links'), 'help' => t('Display fields in a contextual links menu.'), 'field' => array( 'id' => 'contextual_links', ), ); }

contextual_toolbar

contextual_toolbar() Implements hook_toolbar(). File core/modules/contextual/contextual.module, line 16 Adds contextual links to perform actions related to elements on a page. Code function contextual_toolbar() { $items = []; $items['contextual'] = [ '#cache' => [ 'contexts' => [ 'user.permissions', ], ], ]; if (!\Drupal::currentUser()->hasPermission('access contextual links')) { return $items; } $items['contextual'] += array( '#type'

contextual_preprocess

contextual_preprocess(&$variables, $hook, $info) Implements hook_preprocess(). See also contextual_pre_render_placeholder() contextual_page_attachments() \Drupal\contextual\ContextualController::render() File core/modules/contextual/contextual.module, line 108 Adds contextual links to perform actions related to elements on a page. Code function contextual_preprocess(&$variables, $hook, $info) { $variables['#cache']['contexts'][] = 'user.permissions'; if (!\Drupal::currentUser()-&

contextual_page_attachments

contextual_page_attachments(array &$page) Implements hook_page_attachments(). Adds the drupal.contextual-links library to the page for any user who has the 'access contextual links' permission. See also contextual_preprocess() File core/modules/contextual/contextual.module, line 62 Adds contextual links to perform actions related to elements on a page. Code function contextual_page_attachments(array &$page) { if (!\Drupal::currentUser()->hasPermission('access contextual links'))