'visible' =>
[ ':input[name="sitename_title"]' =>
['checked' => FALSE
],
],
];
break;
case 'displays':
$form['#title'
] .=
$this->
t('Attach to'
);
$displays =
[];
foreach ($this->view->storage->
get('display'
) as $display_id =>
$display) { // @todo The display plugin should have display_title and id as well.
if ($this->view->displayHandlers->
has($display_id) &&
$this->view->displayHandlers->
get($display_id)->
acceptAttachments()) { $displays[$display_id] =
$display['display_title'
];
} } $form['displays'
] =
[ '#title' =>
$this->
t('Displays'
),
'#type' => 'checkboxes',
'#description' =>
$this->
t('The feed icon will be available only to the selected displays.'
),
'#options' =>
array_map('\Drupal\Component\Utility\Html::escape',
$displays),
'#default_value' =>
$this->
getOption('displays'
),
];
break;