PageEditServiceInterface
interface PageEditServiceInterface
Interface to be called for DI for PageEdit Main related services
Methods
Defines slug and title for a set of pages
Defines the toolbar
Shortcut for $pageEditFile->delete()
Gets the change frequency of the page
Get content of the page
Gets the description of the page
Gets links to display in the select in Tinymce
Returns an array containing all the pages
Gets the priority of the page
Gets the title of the page
Gets the translation of title of the page
Registers the page and returns the slug
Details
at line 33
Form
createForm(string $name, PageEdit $pageEdit)
Shortcut to call EventFormFactory to create Form
at line 39
array
definePagesSlugTitle(Finder $finder)
Defines slug and title for a set of pages
at line 45
string
defineToolbar(string $kind, string $page)
Defines the toolbar
at line 50
delete(string $page, bool $archive)
Shortcut for $pageEditFile->delete()
at line 56
getChangeFrequency(string $fileContent)
Gets the change frequency of the page
at line 62
string
getContent(string $fileContent)
Get content of the page
at line 68
PageEdit|false
getData(string $page)
Returns a PageEdit object
at line 74
string|null
getDescription(string $fileContent)
Gets the description of the page
at line 80
array
getLinks()
Gets links to display in the select in Tinymce
at line 86
array
getPages()
Returns an array containing all the pages
at line 92
int/null
getPriority(string $fileContent)
Gets the priority of the page
at line 98
string
getTitle(string $fileContent, string $slug)
Gets the title of the page
at line 104
string
getTitleTranslated(string $title)
Gets the translation of title of the page
at line 110
string
register(string $page, Form $form, $user)
Registers the page and returns the slug