MenuLinkContentForm::save

public MenuLinkContentForm::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 o

DateTimePlus::createFromArray

public static DateTimePlus::createFromArray(array $date_parts, $timezone = NULL, $settings = array()) Creates a date object from an array of date parts. Converts the input value into an ISO date, forcing a full ISO date even if some values are missing. Parameters array $date_parts: An array of date parts, like ('year' => 2014, 'month' => 4). mixed $timezone: (optional) \DateTimeZone object, time zone string or NULL. NULL uses the default system time zone. Defaults to NULL. array $setting

MenuLinkBase::isResettable

public MenuLinkBase::isResettable() Returns whether this link can be reset. In general, only links that store overrides using the menu_link.static.overrides service should return TRUE for this method. Return value bool TRUE if it can be reset, FALSE otherwise. Overrides MenuLinkInterface::isResettable File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 73 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function isResettable() { return FALS

EntityDisplayModeController

Provides methods for entity display mode routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\field_ui\Controller\EntityDisplayModeController File core/modules/field_ui/src/Controller/EntityDisplayModeController.php, line 11 Namespace Drupal\field_ui\Controller Members Name Modifiers Type Description Con

SearchPageAccessControlHandler

Defines the access control handler for the search page entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\search\SearchPageAccessControlHandler See also \Drupal\search\Entity\SearchPage File core/modules/search/src/SearchPageAccessControlHandler.php, line 16 Namespace Drupal\search Members Name Mo

DynamicPageCacheSubscriber::shouldCacheResponse

protected DynamicPageCacheSubscriber::shouldCacheResponse(CacheableResponseInterface $response) Whether the given response should be cached by Dynamic Page Cache. We consider any response that has cacheability metadata meeting the auto- placeholdering conditions to be uncacheable. Because those conditions indicate poor cacheability, and if it doesn't make sense to cache parts of a page, then neither does it make sense to cache an entire page. But note that auto-placeholdering avoids such cachea

ControllerBase::entityFormBuilder

protected ControllerBase::entityFormBuilder() Retrieves the entity form builder. Return value \Drupal\Core\Entity\EntityFormBuilderInterface The entity form builder. File core/lib/Drupal/Core/Controller/ControllerBase.php, line 155 Class ControllerBase Utility base class for thin controllers. Namespace Drupal\Core\Controller Code protected function entityFormBuilder() { if (!$this->entityFormBuilder) { $this->entityFormBuilder = $this->container()->get('entity.form_b

EntityFieldManager::$fieldMap

An array keyed by entity type. Each value is an array whose keys are field names and whose value is an array with two entries: type: The field type. bundles: The bundles in which the field appears. File core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 65 Class EntityFieldManager Manages the discovery of entity fields. Namespace Drupal\Core\Entity Code protected $fieldMap = [];

RouteMatch::$routeName

The route name. Type: string File core/lib/Drupal/Core/Routing/RouteMatch.php, line 20 Class RouteMatch Default object representing the results of routing. Namespace Drupal\Core\Routing Code protected $routeName;

FormValidator::$logger

A logger instance. Type: \Psr\Log\LoggerInterface File core/lib/Drupal/Core/Form/FormValidator.php, line 40 Class FormValidator Provides validation of form submissions. Namespace Drupal\Core\Form Code protected $logger;