Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / quickedit / tests / modules / src / MockQuickEditEntityFieldAccessCheck.php
1 <?php
2
3 namespace Drupal\quickedit_test;
4
5 use Drupal\Core\Entity\EntityInterface;
6 use Drupal\quickedit\Access\QuickEditEntityFieldAccessCheckInterface;
7
8 /**
9  * Access check for in-place editing entity fields.
10  */
11 class MockQuickEditEntityFieldAccessCheck implements QuickEditEntityFieldAccessCheckInterface {
12
13   /**
14    * {@inheritdoc}
15    */
16   public function accessEditEntityField(EntityInterface $entity, $field_name) {
17     return TRUE;
18   }
19
20 }