LocaleEvent

Defines a Locale event. Hierarchy class \Symfony\Component\EventDispatcher\Eventclass \Drupal\locale\LocaleEvent File core/modules/locale/src/LocaleEvent.php, line 10 Namespace Drupal\locale Members Name Modifiers Type Description Event::$dispatcher private property Event::$name private property Event::$propagationStopped private property Event::getDispatcher Deprecated public function Returns the EventDispatcher that dispatches this Event. Eve

EnforcedResponseException

Custom exception to break out of the main request and enforce a response. Hierarchy class \Drupal\Core\Form\EnforcedResponseException extends \Exception File core/lib/Drupal/Core/Form/EnforcedResponseException.php, line 10 Namespace Drupal\Core\Form Members Name Modifiers Type Description EnforcedResponseException::$response protected property The response to be enforced. EnforcedResponseException::getResponse public function Return the response to be enforced.

book_node_insert

book_node_insert(EntityInterface $node) Implements hook_ENTITY_TYPE_insert() for node entities. File core/modules/book/book.module, line 262 Allows users to create and organize related content in an outline. Code function book_node_insert(EntityInterface $node) { /** @var \Drupal\book\BookManagerInterface $book_manager */ $book_manager = \Drupal::service('book.manager'); $book_manager->updateOutline($node); }

Table::processTable

public static Table::processTable(&$element, FormStateInterface $form_state, &$complete_form) #process callback for #type 'table' to add tableselect support. Parameters array $element: An associative array containing the properties and children of the table element. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. array $complete_form: The complete form structure. Return value array The processed element. File core/lib/Drupal/Core/Render/Element/Table.p

views-view-grid.html.twig

Default theme implementation for views to display rows in a grid. Available variables: attributes: HTML attributes for the wrapping element. title: The title of this group of rows. view: The view object. rows: The rendered view results. options: The view plugin style options. row_class_default: A flag indicating whether default classes should be used on rows. col_class_default: A flag indicating whether default classes should be used on columns. items: A list of grid items. Each item c

Item::getTitle

public Item::getTitle() Returns the title of the feed item. Return value string The title of the feed item. Overrides ItemInterface::getTitle File core/modules/aggregator/src/Entity/Item.php, line 132 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getTitle() { return $this->get('title')->value; }

ExecutionContext::getValidator

public ExecutionContext::getValidator() Returns the validator. Useful if you want to validate additional constraints: public function validate($value, Constraint $constraint) { $validator = $this->context->getValidator(); $violations = $validator->validateValue($value, new Length(array('min' => 3))); if (count($violations) > 0) { // ... } } Return value ValidatorInterface Overrides ExecutionContextInterface::getValidator File core/lib/Drupal/Core/TypedData/Validation/ExecutionCo

ContentPreprocess::create

public static ContentPreprocess::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 servic

RouteSubscriber::__construct

public RouteSubscriber::__construct(EntityManagerInterface $entity_manager, StateInterface $state) Constructs a \Drupal\views\EventSubscriber\RouteSubscriber instance. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\State\StateInterface $state: The state key value store. File core/modules/views/src/EventSubscriber/RouteSubscriber.php, line 62 Class RouteSubscriber Builds up the routes of all views. Namespace Drupal\views\EventSubs

LocalReadOnlyStream::stream_write

public LocalReadOnlyStream::stream_write($data) Support for fwrite(), file_put_contents() etc. Data will not be written as this is a read-only stream wrapper. Parameters string $data: The string to be written. Return value bool FALSE as data will not be written. Overrides LocalStream::stream_write See also http://php.net/manual/streamwrapper.stream-write.php File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 86 Class LocalReadOnlyStream Defines a read-only Drupal stre