Provides specific access control for the file entity type.
@Plugin(
id = "file_default",
module = "file",
label = @Translation("File selection"),
entity_types = {"file"},
group = "default",
weight = 1
)
Expanded class hierarchy of FileSelection
class FileSelection extends SelectionBase {
/**
* Overrides SelectionBase::buildEntityQuery().
*/
public function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
$query = parent::buildEntityQuery($match, $match_operator);
$query
->condition('status', FILE_STATUS_PERMANENT);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileSelection:: |
public | function |
Overrides SelectionBase::buildEntityQuery(). Overrides SelectionBase:: |
|
SelectionBase:: |
protected | property | The entity object, or NULL | |
SelectionBase:: |
protected | property | The field array. | |
SelectionBase:: |
protected | property | The instance array. | |
SelectionBase:: |
public | function |
Implements SelectionInterface::countReferencableEntities(). Overrides SelectionInterface:: |
|
SelectionBase:: |
public | function |
Implements SelectionInterface::entityQueryAlter(). Overrides SelectionInterface:: |
3 |
SelectionBase:: |
public | function |
Implements SelectionInterface::getReferencableEntities(). Overrides SelectionInterface:: |
1 |
SelectionBase:: |
protected | function | Helper method: Passes a query to the alteration system again. | |
SelectionBase:: |
public static | function |
Implements SelectionInterface::settingsForm(). Overrides SelectionInterface:: |
2 |
SelectionBase:: |
public | function |
Implements SelectionInterface::validateAutocompleteInput(). Overrides SelectionInterface:: |
|
SelectionBase:: |
public | function |
Implements SelectionInterface::validateReferencableEntities(). Overrides SelectionInterface:: |
|
SelectionBase:: |
public | function | Constructs a SelectionBase object. |