EntityDisplayBase::$bundle

Bundle to be displayed. Type: string File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 43 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code protected $bundle;

EntityDisplayBase

Provides a common base class for entity view and form displays. Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTraitclass \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses PluginDependencyTraitclass \Drupal\Core\Entity\EntityDisplayBase implements EntityDisplayInterface File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 13 Namespace Drupal\Core\Entity Member

EntityDeleteFormTrait::submitForm

public EntityDeleteFormTrait::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden un

EntityDeleteFormTrait::logger

abstract protected EntityDeleteFormTrait::logger($channel) Gets the logger for a specific channel. Provided by \Drupal\Core\Form\FormBase. Parameters string $channel: The name of the channel. Return value \Psr\Log\LoggerInterface The logger for this channel. Overrides FormBase::logger File core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 41 Class EntityDeleteFormTrait Provides a trait for an entity deletion form. Namespace Drupal\Core\Entity Code abstract protected functio

EntityDeleteFormTrait::logDeletionMessage

protected EntityDeleteFormTrait::logDeletionMessage() Logs a message about the deleted entity. File core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 110 Class EntityDeleteFormTrait Provides a trait for an entity deletion form. Namespace Drupal\Core\Entity Code protected function logDeletionMessage() { $entity = $this->getEntity(); $this->logger($entity->getEntityType()->getProvider())->notice('The @entity-type %label has been deleted.', array( '@entity

EntityDeleteFormTrait::getRedirectUrl

protected EntityDeleteFormTrait::getRedirectUrl() Returns the URL where the user should be redirected after deletion. Return value \Drupal\Core\Url The redirect URL. File core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 95 Class EntityDeleteFormTrait Provides a trait for an entity deletion form. Namespace Drupal\Core\Entity Code protected function getRedirectUrl() { $entity = $this->getEntity(); if ($entity->hasLinkTemplate('collection')) { // If available, re

EntityDeleteFormTrait::getQuestion

public EntityDeleteFormTrait::getQuestion() File core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 46 Class EntityDeleteFormTrait Provides a trait for an entity deletion form. Namespace Drupal\Core\Entity Code public function getQuestion() { return $this->t('Are you sure you want to delete the @entity-type %label?', array( '@entity-type' => $this->getEntity()->getEntityType()->getLowercaseLabel(), '%label' => $this->getEntity()->label(), ))

EntityDeleteFormTrait::getEntity

abstract public EntityDeleteFormTrait::getEntity() Gets the entity of this form. Provided by \Drupal\Core\Entity\EntityForm. Return value \Drupal\Core\Entity\EntityInterface The entity. Overrides EntityForm::getEntity File core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 28 Class EntityDeleteFormTrait Provides a trait for an entity deletion form. Namespace Drupal\Core\Entity Code abstract public function getEntity();

EntityDeleteFormTrait::getDeletionMessage

protected EntityDeleteFormTrait::getDeletionMessage() Gets the message to display to the user after deleting the entity. Return value string The translated string of the deletion message. File core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 66 Class EntityDeleteFormTrait Provides a trait for an entity deletion form. Namespace Drupal\Core\Entity Code protected function getDeletionMessage() { $entity = $this->getEntity(); return $this->t('The @entity-type %label ha

EntityDeleteFormTrait::getConfirmText

public EntityDeleteFormTrait::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ContentEntityConfirmFormBase::getConfirmText File core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 56 Class EntityDeleteFormTrait Provides a trait for an entity deletion form. Namespace Drupal\Core\Entity Code public function getConfirmText() { return $this->t('Delete'); }