class EntityLinkEdit
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/field/EntityLinkEdit.php \Drupal\views\Plugin\views\field\EntityLinkEdit
- 10 core/modules/views/src/Plugin/views/field/EntityLinkEdit.php \Drupal\views\Plugin\views\field\EntityLinkEdit
- 8.9.x core/modules/views/src/Plugin/views/field/EntityLinkEdit.php \Drupal\views\Plugin\views\field\EntityLinkEdit
Field handler to present a link to edit an entity.
Plugin annotation
@ViewsField("entity_link_edit");
Hierarchy
- class \Drupal\Component\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\views\Plugin\views\HandlerBase extends \Drupal\views\Plugin\views\ViewsHandlerInterface implements \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\field\FieldPluginBase extends \Drupal\views\Plugin\views\field\FieldHandlerInterface implements \Drupal\views\Plugin\views\HandlerBase
- class \Drupal\views\Plugin\views\field\LinkBase uses \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\views\Entity\Render\EntityTranslationRenderTrait implements \Drupal\views\Plugin\views\field\FieldPluginBase
- class \Drupal\views\Plugin\views\field\EntityLink implements \Drupal\views\Plugin\views\field\LinkBase
- class \Drupal\views\Plugin\views\field\EntityLinkEdit implements \Drupal\views\Plugin\views\field\EntityLink
- class \Drupal\views\Plugin\views\field\EntityLink implements \Drupal\views\Plugin\views\field\LinkBase
- class \Drupal\views\Plugin\views\field\LinkBase uses \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\views\Entity\Render\EntityTranslationRenderTrait implements \Drupal\views\Plugin\views\field\FieldPluginBase
- class \Drupal\views\Plugin\views\field\FieldPluginBase extends \Drupal\views\Plugin\views\field\FieldHandlerInterface implements \Drupal\views\Plugin\views\HandlerBase
- class \Drupal\views\Plugin\views\HandlerBase extends \Drupal\views\Plugin\views\ViewsHandlerInterface implements \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of EntityLinkEdit
Related topics
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkEdit.php, line 14
Namespace
Drupal\views\Plugin\views\fieldView source
class EntityLinkEdit extends EntityLink {
/**
* {@inheritdoc}
*/
protected function getEntityLinkTemplate() {
return 'edit-form';
}
/**
* {@inheritdoc}
*/
protected function renderLink(ResultRow $row) {
$this->options['alter']['query'] = $this->getDestinationArray();
return parent::renderLink($row);
}
/**
* {@inheritdoc}
*/
protected function getDefaultLabel() {
return $this->t('edit');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.