'value' =>
$style_title,
'setting' =>
$style_summary,
'desc' =>
$this->
t('Change the way content is formatted.'
),
];
// This adds a 'Settings' link to the style_options setting if the style has
// options.
if ($style_plugin_instance->
usesOptions()) { $options['style'
]['links'
]['style_options'
] =
$this->
t('Change settings for this format'
);
} if ($style_plugin_instance->
usesRowPlugin()) { $row_plugin_instance =
$this->
getPlugin('row'
);
$row_summary =
empty($row_plugin_instance->definition
['title'
]) ?
$this->
t('Missing row plugin'
) :
$row_plugin_instance->
summaryTitle();
$row_title =
empty($row_plugin_instance->definition
['title'
]) ?
$this->
t('Missing row plugin'
) :
$row_plugin_instance->
pluginTitle();
$options['row'
] =
[ 'category' => 'format',
'title' =>
$this->
t('Show'
),
'value' =>
$row_title,
'setting' =>
$row_summary,
'desc' =>
$this->
t('Change the way each row in the view is styled.'
),
];