AnnotationBase

Provides a base class for classed annotations. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterface File core/lib/Drupal/Component/Annotation/AnnotationBase.php, line 8 Namespace Drupal\Component\Annotation Members Name Modifiers Type Description AnnotationBase::$class protected property The class used for this annotated class. AnnotationBase::$id public property The annotated class ID. AnnotationBase::$provider protected

ShowButtonsCommand

Provides an AJAX command for showing the save and cancel buttons. This command is implemented in Drupal.AjaxCommands.prototype.viewsShowButtons. Hierarchy class \Drupal\views\Ajax\ShowButtonsCommand implements CommandInterface File core/modules/views/src/Ajax/ShowButtonsCommand.php, line 12 Namespace Drupal\views\Ajax Members Name Modifiers Type Description ShowButtonsCommand::$changed protected property Whether the view has been changed. ShowButtonsCommand::render p

TwigNodeTrans::__construct

public TwigNodeTrans::__construct(\Twig_Node $body, \Twig_Node $plural = NULL, \Twig_Node_Expression $count = NULL, \Twig_Node_Expression $options = NULL, $lineno, $tag = NULL) Constructor. The nodes are automatically made available as properties ($this->node). The attributes are automatically made available as array items ($this['name']). Parameters array $nodes An array of named nodes: array $attributes An array of attributes (should not be nodes): int $lineno The line number: string $tag

BookAdminEditForm

Provides a form for administering a single book's hierarchy. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\book\Form\BookAdminEditForm File core/modules/book/src/Form/BookAdminEditForm.php, line 19 Namespace Drupal\book\Form Members Name Modifiers Type Description BookAdmi

BlockBase::blockSubmit

public BlockBase::blockSubmit($form, FormStateInterface $form_state) Adds block type-specific submission handling for the block form. Note that this method takes the form structure and form state for the full block configuration form as arguments, not just the elements defined in BlockPluginInterface::blockForm(). Parameters array $form: The form definition array for the full block configuration form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides Bl

File::baseFieldDefinitions

public static File::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that sho

NodeController::revisionShow

public NodeController::revisionShow($node_revision) Displays a node revision. Parameters int $node_revision: The node revision ID. Return value array An array suitable for drupal_render(). File core/modules/node/src/Controller/NodeController.php, line 127 Class NodeController Returns responses for Node routes. Namespace Drupal\node\Controller Code public function revisionShow($node_revision) { $node = $this->entityManager()->getStorage('node')->loadRevision($node_revision)

Entity API

Describes how to define and manipulate content and configuration entities. Entities, in Drupal, are objects that are used for persistent storage of content and configuration information. See the Information types topic for an overview of the different types of information, and the Configuration API topic for more about the configuration API. Each entity is an instance of a particular "entity type". Some content entity types have sub-types, which are known as "bundles", while for other entity ty

block_help

block_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/block/block.module, line 19 Controls the visual building blocks a page is constructed with. Code function block_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.block': $block_content = \Drupal::moduleHandler()->moduleExists('block_content') ? \Drupal::url('help.page', array('name' => 'block_content')) : '#'; $output = '';

UserAuthenticationController::login

public UserAuthenticationController::login(Request $request) Logs in a user. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. Return value \Symfony\Component\HttpFoundation\Response A response which contains the ID and CSRF token. File core/modules/user/src/Controller/UserAuthenticationController.php, line 151 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code p