'#markup' =>
$this->
t('The selected display type does not use @type plugins',
['@type' =>
$type]),
'#theme_wrappers' =>
['views_ui_container'
],
'#attributes' =>
['class' =>
['views-display-setting'
]],
];
return $build;
} break;
} // Create an array of actions to pass to links template.
$actions =
[];
$count_handlers =
count($executable->display_handler->
getHandlers($type));
// Create the add text variable for the add action.
$add_text =
$this->
t('Add <span class="visually-hidden">@type</span>',
['@type' =>
$types[$type]['ltitle'
]]);
$actions['add'
] =
[ 'title' =>
$add_text,
'url' => Url::
fromRoute('views_ui.form_add_handler',
['js' => 'nojs', 'view' =>
$view->
id(), 'display_id' =>
$display['id'
], 'type' =>
$type]),
'attributes' =>
['class' =>
['icon compact add', 'views-ajax-link'
], 'id' => 'views-add-' .
$type],
];
if ($count_handlers > 0
) { // Create the rearrange text variable for the rearrange action.