OpenOffCanvasDialogCommand::__construct

public OpenOffCanvasDialogCommand::__construct($title, $content, array $dialog_options = [], $settings = NULL) Constructs an OpenOffCanvasDialogCommand object. The off-canvas dialog differs from the normal modal provided by OpenDialogCommand in that a off-canvas has built in positioning and behaviours. Drupal provides a built-in off-canvas tray for this purpose, so the selector is hard-coded in the call to the parent constructor. Parameters string $title: The title of the dialog. string|array

TranslationManager::addTranslator

public TranslationManager::addTranslator(TranslatorInterface $translator, $priority = 0) Appends a translation system to the translation chain. Parameters \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator: The translation interface to be appended to the translation chain. int $priority: The priority of the logger being added. Return value $this File core/lib/Drupal/Core/StringTranslation/TranslationManager.php, line 66 Class TranslationManager Defines a chained tr

ViewUI::calculateDependencies

public ViewUI::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this Overrides ConfigEntityInterface::calculateDependencies See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/modules/views_ui/src/ViewUI.php, line 1184 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function calculateDependencies() { $this->storage->calculateDependencies(); return $this; }

BlockListBuilder::createInstance

public static BlockListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dependen

FormState::clearErrors

public FormState::clearErrors() Clears all errors against all form elements made by self::setErrorByName(). Overrides FormStateInterface::clearErrors File core/lib/Drupal/Core/Form/FormState.php, line 1101 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function clearErrors() { $this->errors = []; static::setAnyErrors(FALSE); }

forum_form_taxonomy_vocabulary_form_alter

forum_form_taxonomy_vocabulary_form_alter(&$form, FormStateInterface $form_state, $form_id) Implements hook_form_BASE_FORM_ID_alter() for \Drupal\taxonomy\VocabularyForm. File core/modules/forum/forum.module, line 288 Provides discussion forums. Code function forum_form_taxonomy_vocabulary_form_alter(&$form, FormStateInterface $form_state, $form_id) { $vid = \Drupal::config('forum.settings')->get('vocabulary'); $vocabulary = $form_state->getFormObject()->getEntity(); if

EntityType::$bundle_of

The name of the entity type for which bundles are provided. Type: string|null File core/lib/Drupal/Core/Entity/EntityType.php, line 133 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code protected $bundle_of = NULL;

LanguageFormBase::commonForm

public LanguageFormBase::commonForm(array &$form) Common elements of the language addition and editing form. File core/modules/language/src/Form/LanguageFormBase.php, line 46 Class LanguageFormBase Base form for language add and edit forms. Namespace Drupal\language\Form Code public function commonForm(array &$form) { /* @var $language \Drupal\language\ConfigurableLanguageInterface */ $language = $this->entity; if ($language->getId()) { $form['langcode_view'] =

EntityRouteAlterSubscriber::$resolverManager

The entity resolver manager. Type: \Drupal\Core\Entity\EntityResolverManager File core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php, line 28 Class EntityRouteAlterSubscriber Registers the 'type' of route parameter names that match an entity type. Namespace Drupal\Core\EventSubscriber Code protected $resolverManager;

hook_ENTITY_TYPE_view

hook_ENTITY_TYPE_view(array &$build, \Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode) Act on entities of a particular type being assembled before rendering. Parameters &$build: A renderable array representing the entity content. The module may add elements to $build prior to rendering. The structure of $build is a renderable array as expected by drupal_render(). \Drupal\Core\Entity\EntityInterface $entity: The ent