PageEditService
class PageEditService implements PageEditServiceInterface
Main services related to PageEdit
Properties
private AuthorizationCheckerInterface | $authChecker | Stores AuthorizationCheckerInterface | |
private ConfigServiceInterface | $configService | Stores ConfigServiceInterface | |
private PageEditFormFactoryInterface | $pageEditFormFactory | Stores PageEditFormFactoryInterface | |
private PageEditFileInterface | $pageEditFile | Stores PageEditFileInterface | |
private PageEditSlugInterface | $pageEditSlug | Stores PageEditSlugInterface | |
private Request | $request | Stores current Request | |
private Environment | $environment | Stores Environment | |
private TranslatorInterface | $translator | Stores TranslatorInterface |
Methods
No description
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 82
__construct(AuthorizationCheckerInterface $authChecker, ConfigServiceInterface $configService, PageEditFormFactoryInterface $pageEditFormFactory, PageEditFileInterface $pageEditFile, PageEditSlugInterface $pageEditSlug, RequestStack $requestStack, Environment $environment, TranslatorInterface $translator)
at line 117
Form
createForm(string $name, PageEdit $pageEdit)
Shortcut to call EventFormFactory to create Form
at line 125
array
definePagesSlugTitle(Finder $finder)
Defines slug and title for a set of pages
at line 157
string
defineToolbar(string $kind, string $page)
Defines the toolbar
at line 178
delete(string $page, bool $archive)
Shortcut for $pageEditFile->delete()
at line 186
getChangeFrequency(string $fileContent)
Gets the change frequency of the page
at line 201
string
getContent(string $fileContent)
Get content of the page
at line 219
PageEdit|false
getData(string $page)
Returns a PageEdit object
at line 251
string|null
getDescription(string $fileContent)
Gets the description of the page
at line 266
array
getLinks()
Gets links to display in the select in Tinymce
at line 302
array
getPages()
Returns an array containing all the pages
at line 312
int/null
getPriority(string $fileContent)
Gets the priority of the page
at line 327
string
getTitle(string $fileContent, string $slug)
Gets the title of the page
at line 351
string
getTitleTranslated(string $title)
Gets the translation of title of the page
at line 371
string
register(string $page, Form $form, $user)
Registers the page and returns the slug