protected function RemoveNonPublicFiles::includeField in Acquia Content Hub 8.2
Whether we should include this field in the dependency calculation.
Parameters
\Drupal\Core\Field\FieldItemListInterface $field: The entity field.
Return value
bool TRUE if we should include the field, FALSE otherwise.
2 calls to RemoveNonPublicFiles::includeField()
- RemoveNonPublicFiles::onFilterFields in src/
EventSubscriber/ FilterDeps/ RemoveNonPublicFiles.php - Filter fields.
- RemoveNonPublicFiles::onSerializeContentField in src/
EventSubscriber/ FilterDeps/ RemoveNonPublicFiles.php - Serialize content field event.
File
- src/
EventSubscriber/ FilterDeps/ RemoveNonPublicFiles.php, line 91
Class
- RemoveNonPublicFiles
- Class RemoveNonPublicFiles.
Namespace
Drupal\acquia_contenthub\EventSubscriber\FilterDepsCode
protected function includeField(FieldItemListInterface $field) {
$definition = $field
->getFieldDefinition();
if (!in_array($definition
->getType(), [
'file',
'image',
], TRUE)) {
return TRUE;
}
return $this->manager
->hasDefinition($definition
->getFieldStorageDefinition()
->getSetting('uri_scheme'));
}