MockQuickEditEntityFieldAccessCheck.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\quickedit_testFile
core/modules/quickedit/tests/modules/src/MockQuickEditEntityFieldAccessCheck.phpView source
<?php
namespace Drupal\quickedit_test;
use Drupal\Core\Entity\EntityInterface;
use Drupal\quickedit\Access\QuickEditEntityFieldAccessCheckInterface;
/**
* Access check for in-place editing entity fields.
*/
class MockQuickEditEntityFieldAccessCheck implements QuickEditEntityFieldAccessCheckInterface {
/**
* {@inheritdoc}
*/
public function accessEditEntityField(EntityInterface $entity, $field_name) {
return TRUE;
}
}
Classes
Name | Description |
---|---|
MockQuickEditEntityFieldAccessCheck | Access check for in-place editing entity fields. |