menu-local-tasks.html.twig

Default theme implementation to display primary and secondary local tasks. Available variables: primary: HTML list items representing primary tasks. secondary: HTML list items representing primary tasks. Each item in these variables (primary and secondary) can be individually themed in menu-local-task.html.twig. File core/modules/system/templates/menu-local-tasks.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

NodeAccessControlHandlerInterface::checkAllGrants

public NodeAccessControlHandlerInterface::checkAllGrants(AccountInterface $account) Checks all grants for a given account. Parameters \Drupal\Core\Session\AccountInterface $account: A user object representing the user for whom the operation is to be performed. Return value int. Status of the access check. File core/modules/node/src/NodeAccessControlHandlerInterface.php, line 80 Class NodeAccessControlHandlerInterface Node specific entity access control methods. Namespace Drupal\node

BlockController::create

public static BlockController::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 service

system_js_settings_build

system_js_settings_build(&$settings, AttachedAssetsInterface $assets) Implements hook_js_settings_build(). Sets values for the core/drupal.ajax library, which just depends on the active theme but no other request-dependent values. File core/modules/system/system.module, line 641 Configuration system that lets administrators modify the workings of the site. Code function system_js_settings_build(&$settings, AttachedAssetsInterface $assets) { // Generate the values for the core/drupal

Element::getTypedDataManager

public Element::getTypedDataManager() Gets the typed configuration manager. Overrides \Drupal\Core\TypedData\TypedDataTrait::getTypedDataManager() to ensure the typed configuration manager is returned. Return value \Drupal\Core\Config\TypedConfigManagerInterface The typed configuration manager. Overrides TypedDataTrait::getTypedDataManager File core/lib/Drupal/Core/Config/Schema/Element.php, line 30 Class Element Defines a generic configuration element. Namespace Drupal\Core\Config\Sch

SessionManager::$connection

The database connection to use. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Session/SessionManager.php, line 44 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code protected $connection;

BaseFieldDefinition::getTargetBundle

public BaseFieldDefinition::getTargetBundle() Gets the bundle the field is attached to. This method should not be confused with EntityInterface::bundle() (configurable fields are config entities, and thus implement both interfaces): FieldDefinitionInterface::getTargetBundle() answers "as a field, which bundle are you attached to?". EntityInterface::bundle() answers "as a (config) entity, what is your own bundle?" (not relevant in our case, the config entity types used to store the definitions

ExecutionContext::$translationDomain

Type: string File core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 43 Class ExecutionContext Defines an execution context class. Namespace Drupal\Core\TypedData\Validation Code protected $translationDomain;

ViewUI::getDisplay

public &ViewUI::getDisplay($display_id) Retrieves a specific display's configuration by reference. Parameters string $display_id: The display ID to retrieve, e.g., 'default', 'page_1', 'block_2'. Return value array A reference to the specified display configuration. Overrides ViewEntityInterface::getDisplay File core/modules/views_ui/src/ViewUI.php, line 901 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function &getDisplay($display_

FormBase::currentUser

protected FormBase::currentUser() Gets the current user. Return value \Drupal\Core\Session\AccountInterface The current user. File core/lib/Drupal/Core/Form/FormBase.php, line 191 Class FormBase Provides a base class for forms. Namespace Drupal\Core\Form Code protected function currentUser() { return \Drupal::currentUser(); }