3 namespace Drupal\permissions_by_entity\Event;
5 use Drupal\Core\Entity\ContentEntityInterface;
6 use Drupal\Core\Field\FieldItemListInterface;
7 use Symfony\Component\EventDispatcher\Event;
10 * Class EntityFieldValueAccessDeniedEvent.
12 * @package Drupal\permissions_by_entity\Event
14 class EntityFieldValueAccessDeniedEvent extends Event {
17 * The field that contains the content entity.
19 * @var \Drupal\Core\Field\FieldItemListInterface
26 * @var \Drupal\Core\Entity\ContentEntityInterface
47 * @param \Drupal\Core\Field\FieldItemListInterface $field
48 * The field that contains the content entity.
50 public function setField(FieldItemListInterface $field) {
51 $this->field = $field;
57 * @return \Drupal\Core\Field\FieldItemListInterface
58 * The field that contains the content entity.
60 public function getField() {
65 * Sets the content entity.
67 * @param \Drupal\Core\Entity\ContentEntityInterface $entity
70 public function setEntity(ContentEntityInterface $entity) {
71 $this->entity = $entity;
77 * @return \Drupal\Core\Entity\ContentEntityInterface
80 public function getEntity() {
90 public function setUid($uid) {
100 public function getUid() {
110 public function setIndex($index) {
111 $this->index = $index;
120 public function getIndex() {