editor_field_formatter_info_alter

editor_field_formatter_info_alter(&$info) Implements hook_form_FORM_ID_alter() for \Drupal\filter\FilterFormatListBuilder. Implements hook_field_formatter_info_alter(). See also quickedit_field_formatter_info_alter() File core/modules/editor/editor.module, line 75 Adds bindings for client-side "text editors" to text formats. Code function editor_field_formatter_info_alter(&$info) { // Update \Drupal\text\Plugin\Field\FieldFormatter\TextDefaultFormatter's // annotation to indicate

ContentTranslationHandler::hasChangedTime

protected ContentTranslationHandler::hasChangedTime() Checks whether the entity type supports modification time natively. Return value bool TRUE if metadata is natively supported, FALSE otherwise. File core/modules/content_translation/src/ContentTranslationHandler.php, line 196 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code protected function hasChangedTime() { return $this->entityType->isSubclassOf('Drupa

Block::$category

The category in the admin UI where the block will be listed. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/Block/Annotation/Block.php, line 39 Class Block Defines a Block annotation object. Namespace Drupal\Core\Block\Annotation Code public $category = '';

MainContentRendererInterface::renderResponse

public MainContentRendererInterface::renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match) Renders the main content render array into a response. Parameters array $main_content: The render array representing the main content. \Symfony\Component\HttpFoundation\Request $request: The request object, for context. \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match, for context. Return value \Symfony\Component\HttpFoundation\Response The Respons

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; }

Term::postSave

public Term::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bool $upda

dblog_help

dblog_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/dblog/dblog.module, line 19 System monitoring and logging for administrators. Code function dblog_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.dblog': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Database Logging module logs system events in the Drupal database. For mor