Skip to content
Snippets Groups Projects
Commit a68fdc88 authored by Bhanu Prakash Poluparthi's avatar Bhanu Prakash Poluparthi Committed by Erik Stielstra
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment