field_ui_entity_type_build

field_ui_entity_type_build(array &$entity_types) Implements hook_entity_type_build(). File core/modules/field_ui/field_ui.module, line 72 Allows administrators to attach custom fields to fieldable types. Code function field_ui_entity_type_build(array &$entity_types) { /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */ $entity_types['field_config']->setFormClass('edit', 'Drupal\field_ui\Form\FieldConfigEditForm'); $entity_types['field_config']->setFormClass

automated_cron_help

automated_cron_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/automated_cron/automated_cron.module, line 14 Provides an automated cron by executing it at the end of a response. Code function automated_cron_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.automated_cron': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Automated

CacheRouterRebuildSubscriber::onRouterFinished

public CacheRouterRebuildSubscriber::onRouterFinished() File core/lib/Drupal/Core/EventSubscriber/CacheRouterRebuildSubscriber.php, line 17 Class CacheRouterRebuildSubscriber Clear cache tags when the router is rebuilt. Namespace Drupal\Core\EventSubscriber Code public function onRouterFinished() { // Requested URLs that formerly gave a 403/404 may now be valid. // Also invalidate all cached routing. Cache::invalidateTags(['4xx-response', 'route_match']); }

AuthenticationCollector

A collector class for authentication providers. Hierarchy class \Drupal\Core\Authentication\AuthenticationCollector implements AuthenticationCollectorInterface File core/lib/Drupal/Core/Authentication/AuthenticationCollector.php, line 8 Namespace Drupal\Core\Authentication Members Name Modifiers Type Description AuthenticationCollector::$globalProviders protected property List of providers which are allowed on routes with no _auth option. AuthenticationCollector::$prov

EntityTypeInfo::entityExtraFieldInfo

public EntityTypeInfo::entityExtraFieldInfo() Gets the "extra fields" for a bundle. This is a hook bridge. Return value array A nested array of 'pseudo-field' elements. Each list is nested within the following keys: entity type, bundle name, context (either 'form' or 'display'). The keys are the name of the elements as appearing in the renderable array (either the entity form or the displayed entity). The value is an associative array: label: The human readable name of the element. Make sure

BookManager::moveChildren

protected BookManager::moveChildren(array $link, array $original) Moves children from the original parent to the updated link. Parameters array $link: The link being saved. array $original: The original parent of $link. File core/modules/book/src/BookManager.php, line 826 Class BookManager Defines a book manager. Namespace Drupal\book Code protected function moveChildren(array $link, array $original) { $p = 'p1'; $expressions = array(); for ($i = 1; $i <= $link['depth']; $p =

FieldFilteredMarkup::create

public static FieldFilteredMarkup::create($string) Overrides \Drupal\Component\Render\MarkupTrait::create(). Return value string|\Drupal\Component\Render\MarkupInterface A safe string filtered with the allowed tag list and normalized. Overrides MarkupTrait::create See also \Drupal\Core\Field\FieldFilteredMarkup::allowedTags() \Drupal\Component\Utility\Xss::filter() \Drupal\Component\Utility\Html::normalize() File core/lib/Drupal/Core/Field/FieldFilteredMarkup.php, line 35 Class FieldFilte

BookOutlineStorageInterface::getBookSubtree

public BookOutlineStorageInterface::getBookSubtree($link, $max_depth) Get book subtree. Parameters array $link: A fully loaded book link. int $max_depth: The maximum supported depth of the book tree. Return value array Array of unordered subtree book items. File core/modules/book/src/BookOutlineStorageInterface.php, line 167 Class BookOutlineStorageInterface Defines a common interface for book outline storage classes. Namespace Drupal\book Code public function getBookSubtree($link, $

node_config_translation_info_alter

node_config_translation_info_alter(&$info) Implements hook_config_translation_info_alter(). File core/modules/node/node.module, line 1367 The core module that allows content to be submitted to the site. Code function node_config_translation_info_alter(&$info) { $info['node_type']['class'] = 'Drupal\node\ConfigTranslation\NodeTypeMapper'; }

FormState::getTriggeringElement

public &FormState::getTriggeringElement() Gets the form element that triggered submission. Return value array|null The form element that triggered submission, of NULL if there is none. Overrides FormStateInterface::getTriggeringElement File core/lib/Drupal/Core/Form/FormState.php, line 820 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function &getTriggeringElement() { return $this->triggering_element; }