public function ViewsBulkOperationsBaseOperation::label in Views Bulk Operations (VBO) 7.3
Returns the human-readable name of the operation, meant to be shown to the user.
File
- plugins/
operation_types/ base.class.php, line 93 - Defines the base class for operations.
Class
- ViewsBulkOperationsBaseOperation
- @file Defines the base class for operations.
Code
public function label() {
$admin_label = $this
->getAdminOption('label');
if (!empty($admin_label)) {
$label = t($admin_label);
}
else {
// If the admin didn't specify any label, fallback to the default one.
$label = $this->operationInfo['label'];
}
return $label;
}