Commit a68fdc88 authored by bhanuprakashnani's avatar bhanuprakashnani Committed by Sutharsan

Issue #2864264 by Pavan B S, bhanuprakashnani: Convert module to use short...

Issue #2864264 by Pavan B S, bhanuprakashnani: Convert module to use short array syntax (new coding standard)
parent 85d12a09
......@@ -76,7 +76,7 @@ class BlockEntityStorage extends ConfigEntityStorage {
$entity_query = $this->getQuery();
$entity_query->condition('plugin', 'fieldblock:', 'STARTS_WITH');
$result = $entity_query->execute();
return $result ? $this->loadMultiple($result) : array();
return $result ? $this->loadMultiple($result) : [];
}
/**
......
......@@ -77,13 +77,13 @@ class FieldBlockConfigForm extends ConfigFormBase {
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$enabled = $this->fieldblock_controller->getEnabledEntityTypes();
$form['enabled_entity_types'] = array(
$form['enabled_entity_types'] = [
'#type' => 'checkboxes',
'#title' => $this->t('Enable Entity Types'),
'#options' => $this->getEntityTypeLabels(),
'#description' => $this->t('Select the Entity Types to expose as field blocks.'),
'#default_value' => $enabled,
);
];
$orphaned_types = $this->getOrphanedEntityTypes($enabled);
$cleanup_options = [];
$entity_type_definitions = $this->entityManager->getDefinitions();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment