SystemBrandingOffCanvasForm::validateConfigurationForm

public SystemBrandingOffCanvasForm::validateConfigurationForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormBase::validat

BookManagerInterface::bookTreeGetFlat

public BookManagerInterface::bookTreeGetFlat(array $book_link) Gets the book for a page and returns it as a linear array. Parameters array $book_link: A fully loaded book link that is part of the book hierarchy. Return value array A linear array of book links in the order that the links are shown in the book, so the previous and next pages are the elements before and after the element corresponding to the current node. The children of the current node (if any) will come immediately after it i

ContentEntityNullStorage::has

protected ContentEntityNullStorage::has($id, EntityInterface $entity) Determines if this entity already exists in storage. Parameters int|string $id: The original entity ID. \Drupal\Core\Entity\EntityInterface $entity: The entity being saved. Return value bool Overrides EntityStorageBase::has File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 125 Class ContentEntityNullStorage Defines a null entity storage. Namespace Drupal\Core\Entity Code protected function has($id

user_js_settings_alter

user_js_settings_alter(&$settings, AttachedAssetsInterface $assets) Implements hook_js_settings_alter(). File core/modules/user/user.module, line 111 Enables the user registration and login system. Code function user_js_settings_alter(&$settings, AttachedAssetsInterface $assets) { // Provide the user ID in drupalSettings to allow JavaScript code to customize // the experience for the end user, rather than the server side, which would // break the render cache. // Similarly, pr

views_theme_suggestions_comment_alter

views_theme_suggestions_comment_alter(array &$suggestions, array $variables) Implements hook_theme_suggestions_HOOK_alter(). File core/modules/views/views.module, line 276 Primarily Drupal hooks and global API functions to manipulate views. Code function views_theme_suggestions_comment_alter(array &$suggestions, array $variables) { $comment = $variables['elements']['#comment']; if (!empty($comment->view) && $comment->view->storage->id()) { $suggestions[] =

Shortcut::sort

public static Shortcut::sort(ShortcutInterface $a, ShortcutInterface $b) Sort shortcut objects. Callback for uasort(). Parameters \Drupal\shortcut\ShortcutInterface $a: First item for comparison. \Drupal\shortcut\ShortcutInterface $b: Second item for comparison. Return value int The comparison result for uasort(). File core/modules/shortcut/src/Entity/Shortcut.php, line 175 Class Shortcut Defines the shortcut entity class. Namespace Drupal\shortcut\Entity Code public static function

Theme::canUpdateDirectory

static Theme::canUpdateDirectory($directory) Determines if the Updater can handle the project provided in $directory. Parameters string $directory: Return value bool TRUE if the project is installed, FALSE if not. Overrides UpdaterInterface::canUpdateDirectory File core/lib/Drupal/Core/Updater/Theme.php, line 59 Class Theme Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code static function canU

ExceptionLoggingSubscriber::on404

public ExceptionLoggingSubscriber::on404(GetResponseForExceptionEvent $event) Log 404 errors. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php, line 51 Class ExceptionLoggingSubscriber Log exceptions without further handling. Namespace Drupal\Core\EventSubscriber Code public function on404(GetResponseForExceptionEvent $event) { $request = $event->getRe

StorageComparer::$sourceNames

Sorted list of all the configuration object names in the source storage. The list is keyed by storage collection name. Type: array File core/lib/Drupal/Core/Config/StorageComparer.php, line 66 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code protected $sourceNames = array();

TermInterface

Provides an interface defining a taxonomy term entity. Hierarchy interface \Drupal\Core\Entity\ContentEntityInterface extends \Traversable; interface \Drupal\Core\Entity\EntityChangedInterfaceinterface \Drupal\taxonomy\TermInterface File core/modules/taxonomy/src/TermInterface.php, line 11 Namespace Drupal\taxonomy Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. CacheableDependencyInterface::getCacheContext