Drupal::currentUser

public static Drupal::currentUser() Gets the current active user. Return value \Drupal\Core\Session\AccountProxyInterface File core/lib/Drupal.php, line 246 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function currentUser() { return static::getContainer()->get('current_user'); }

Link

Defines an object that holds information about a link. Hierarchy class \Drupal\Core\Link implements RenderableInterface uses LinkGeneratorTrait File core/lib/Drupal/Core/Link.php, line 11 Namespace Drupal\Core Members Name Modifiers Type Description Link::$text protected property The text of the link. Link::$url protected property The URL of the link. Link::createFromRoute public static function Creates a Link object from a given route name and parameters

ConfigEntityStorageClassException

Thrown when a storage class is not an instance of ConfigEntityStorage. Hierarchy class \Drupal\Core\Config\ConfigException extends \RuntimeExceptionclass \Drupal\Core\Config\Entity\Exception\ConfigEntityStorageClassException File core/lib/Drupal/Core/Config/Entity/Exception/ConfigEntityStorageClassException.php, line 10 Namespace Drupal\Core\Config\Entity\Exception Members

EntityTypeInterface::getGroupLabel

public EntityTypeInterface::getGroupLabel() Gets the human-readable name of the entity type group. Return value string File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 690 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getGroupLabel();

InvalidLookupKeyException

Exception thrown when a config entity uses an invalid lookup key. Hierarchy class \Drupal\Core\Config\Entity\Query\InvalidLookupKeyException extends \LogicException File core/lib/Drupal/Core/Config/Entity/Query/InvalidLookupKeyException.php, line 8 Namespace Drupal\Core\Config\Entity\Query Members

BlockListBuilder::submitForm

public BlockListBuilder::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/block/src/BlockListBuilder.php, line 357 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code public functio

QueryFactory::getSubscribedEvents

static QueryFactory::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array('eventNa

field_ui_form_node_type_form_alter

field_ui_form_node_type_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter(). Adds a button 'Save and manage fields' to the 'Create content type' form. See also node_type_form() field_ui_form_node_type_form_submit() File core/modules/field_ui/field_ui.module, line 125 Allows administrators to attach custom fields to fieldable types. Code function field_ui_form_node_type_form_alter(&$form, FormStateInterface $form_state) { // We want to display the

Editor::getEditor

public Editor::getEditor() Returns the associated text editor plugin ID. Return value string The text editor plugin ID. Overrides EditorInterface::getEditor File core/modules/editor/src/Entity/Editor.php, line 144 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function getEditor() { return $this->editor; }

PermissionHandler::$controllerResolver

The controller resolver. Type: \Drupal\Core\Controller\ControllerResolverInterface File core/modules/user/src/PermissionHandler.php, line 71 Class PermissionHandler Provides the available permissions based on yml files. Namespace Drupal\user Code protected $controllerResolver;