* This output is returned as an array.
*/
public function optionsSummary(&$categories, &$options) {
- $categories['metatags'] = array(
+ $categories['metatags'] = [
'title' => t('Meta tags'),
'column' => 'second',
- );
- $options['metatags'] = array(
+ ];
+ $options['metatags'] = [
'category' => 'metatags',
'title' => t('Meta tags'),
'value' => $this->hasMetatags() ? t('Overridden') : t('Using defaults'),
- );
+ ];
}
/**
* The meta tag values.
*/
public function getMetatags() {
- $metatags = array();
+ $metatags = [];
if (!empty($this->options['metatags'])) {
$metatags = $this->options['metatags'];
}
/**
- * Sets the metatags for the given view.
+ * Sets the meta tags for the given view.
*
* @param array $metatags
* Metatag arrays as suitable for storage.