fieldable_panels_panes_handler_argument_bundle.inc in Fieldable Panels Panes (FPP) 7
Provide views handler arguments for fieldable panel panes.
File
plugins/views/fieldable_panels_panes_handler_argument_bundle.incView source
<?php
/**
* @file
* Provide views handler arguments for fieldable panel panes.
*/
/**
* Argument handler to accept a node type.
*/
class fieldable_panels_panes_handler_argument_bundle extends views_handler_argument {
/**
* {@inheritdoc}
*/
public function summary_name($data) {
return fieldable_panels_panes_get_bundle_label($data->{$this->name_alias});
}
/**
* {@inheritdoc}
*/
public function title() {
return fieldable_panels_panes_get_bundle_label($this->argument);
}
/**
* {@inheritdoc}
*/
public function set_argument($arg) {
// Replace all - in the URL with _ since - is not valid.
$this->argument = str_replace('-', '_', $arg);
return $this
->validate_arg($arg);
}
/**
* {@inheritdoc}
*/
public function summary_argument($data) {
// Transform all _ into - so that URLs are proper.
return str_replace('_', '-', $data->{$this->base_alias});
}
}
Classes
Name | Description |
---|---|
fieldable_panels_panes_handler_argument_bundle | Argument handler to accept a node type. |