block_page_top

block_page_top(array &$page_top) Implements hook_page_top(). File core/modules/block/block.module, line 66 Controls the visual building blocks a page is constructed with. Code function block_page_top(array &$page_top) { if (\Drupal::routeMatch()->getRouteName() === 'block.admin_demo') { $theme = \Drupal::theme()->getActiveTheme()->getName(); $page_top['backlink'] = array( '#type' => 'link', '#title' => t('Exit block region demonstration'), '#

FormState::$executed

If TRUE, the form was submitted and has been processed and executed. This property is uncacheable. Type: bool File core/lib/Drupal/Core/Form/FormState.php, line 322 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected $executed = FALSE;

DataDefinitionInterface::getConstraint

public DataDefinitionInterface::getConstraint($constraint_name) Returns a validation constraint. See \Drupal\Core\TypedData\DataDefinitionInterface::getConstraints() for details. Parameters string $constraint_name: The name of the constraint, i.e. its plugin id. Return value array A validation constraint definition which can be used for instantiating a \Symfony\Component\Validator\Constraint object. See also \Symfony\Component\Validator\Constraint File core/lib/Drupal/Core/TypedData/DataDefi

ContextualLinkDefault::getRouteName

public ContextualLinkDefault::getRouteName() Returns the route name of the contextual link. Return value string The name of the route this contextual link links to. Overrides ContextualLinkInterface::getRouteName File core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 24 Class ContextualLinkDefault Provides a common base implementation of a contextual link. Namespace Drupal\Core\Menu Code public function getRouteName() { return $this->pluginDefinition['route_name']; }

Connection::query

public Connection::query($query, array $args = array(), $options = array()) Executes a query string against the database. This method provides a central handler for the actual execution of every query. All queries executed by Drupal are executed as PDO prepared statements. Parameters string|\Drupal\Core\Database\StatementInterface $query: The query to execute. In most cases this will be a string containing an SQL query with placeholders. An already-prepared instance of StatementInterface may a

BlockContentTypeForm::save

public BlockContentTypeForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the

FormState::get

public &FormState::get($property) Gets any arbitrary property. Parameters string|array $property: Properties are often stored as multi-dimensional associative arrays. If $property is a string, it will return $storage[$property]. If $property is an array, each element of the array will be used as a nested key. If $property = ['foo', 'bar'] it will return $storage['foo']['bar']. Return value mixed A reference to the value for that property, or NULL if the property does not exist. Overrides

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;

FormAjaxResponseBuilderInterface

Provides an interface for building AJAX form responses. Hierarchy interface \Drupal\Core\Form\FormAjaxResponseBuilderInterface File core/lib/Drupal/Core/Form/FormAjaxResponseBuilderInterface.php, line 10 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormAjaxResponseBuilderInterface::buildResponse public function Builds a response for an AJAX form.

FormState::$limit_validation_errors

Stores which errors should be limited during validation. An array of "sections" within which user input must be valid. If the element is within one of these sections, the error must be recorded. Otherwise, it can be suppressed. self::$limit_validation_errors can be an empty array, in which case all errors are suppressed. For example, a "Previous" button might want its submit action to be triggered even if none of the submitted values are valid. This property is uncacheable. Type: array|null Fil