FluentGridFieldExtension
class FluentGridFieldExtension extends Extension (View source)
Supports GridFieldDetailForm_ItemRequest with extra actions
Traits
Decorates admin areas for localised items with extra actions.
Properties
GridFieldDetailForm_ItemRequest | $owner |
Methods
Called when this extension is added to a particular class
Temporarily modify the owner. The original owner is ensured to be restored
Clear the current owner, and restore extension to the state prior to the last setOwner()
Helper method to strip eval'ed arguments from a string that's passed to {@link DataObject::$extensions} or {@link Object::add_extension()}.
Invoke extension point. This will prefer explicit extend
prefixed
methods.
Given a record with Fluent enabled, return a badge that represents the state of it in the current locale
Push a badge to indicate the language that owns the current item
Details
__construct()
static
add_to_class(string $class, string $extensionClass, mixed $args = null)
Called when this extension is added to a particular class
setOwner(object $owner)
Set the owner of this extension.
mixed
withOwner(mixed $owner, callable $callback, array $args = [])
Temporarily modify the owner. The original owner is ensured to be restored
clearOwner()
Clear the current owner, and restore extension to the state prior to the last setOwner()
object
getOwner()
Returns the owner of this extension.
static string
get_classname_without_arguments(string $extensionStr)
Helper method to strip eval'ed arguments from a string that's passed to {@link DataObject::$extensions} or {@link Object::add_extension()}.
mixed
invokeExtension(object $owner, string $method, array ...$arguments)
Invoke extension point. This will prefer explicit extend
prefixed
methods.
HTTPResponse|string|DBHTMLText
actionComplete(Form $form, string $message)
mixed
clearFluent(array $data, Form $form)
mixed
copyFluent(array $data, Form $form)
Copy this record to other localisations (not published)
mixed
unpublishFluent(array $data, Form $form)
Unpublishes the current object from all locales
mixed
archiveFluent(array $data, Form $form)
Archives the current object from all locales (versioned)
mixed
deleteFluent(array $data, Form $form)
Delete the current object from all locales (non-versioned)
mixed
publishFluent(array $data, Form $form)
mixed
showFluent(array $data, Form $form)
mixed
hideFluent(array $data, Form $form)
DBField|null
getBadge(DataObject $record)
Given a record with Fluent enabled, return a badge that represents the state of it in the current locale
updateBadge(DBField|null $badgeField)
Push a badge to indicate the language that owns the current item