public function ContentHubFilter::formatEntityTypesAndBundles in Acquia Content Hub 8
Formats the 'Entity Types' and 'Bundles' properties.
File
- acquia_contenthub_subscriber/
src/ Entity/ ContentHubFilter.php, line 235
Class
- ContentHubFilter
- Defines the ContentHubFilter entity.
Namespace
Drupal\acquia_contenthub_subscriber\EntityCode
public function formatEntityTypesAndBundles() {
$entity_types = $this->entity_types;
$bundles = $this->bundles;
if (!is_array($entity_types)) {
$this->entity_types = array_filter(array_map('trim', explode(PHP_EOL, $this->entity_types)));
}
if (!is_array($bundles)) {
$this->bundles = array_filter(array_map('trim', explode(PHP_EOL, $bundles)));
}
}