1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- declare(strict_types=1);
- /**
- * @package Grav\Framework\Form
- *
- * @copyright Copyright (C) 2015 - 2018 Trilby Media, LLC. All rights reserved.
- * @license MIT License; see LICENSE file for details.
- */
- namespace Grav\Framework\Form\Interfaces;
- use Grav\Common\Page\Interfaces\PageInterface;
- use Grav\Common\Page\Page;
- interface FormFactoryInterface
- {
- /**
- * @param Page $page
- * @param string $name
- * @param array $form
- * @return FormInterface|null
- * @deprecated 1.6 Use FormFactory::createFormByPage() instead.
- */
- public function createPageForm(Page $page, string $name, array $form): ?FormInterface;
- /**
- * Create form using the header of the page.
- *
- * @param PageInterface $page
- * @param string $name
- * @param array $form
- * @return FormInterface|null
- *
- public function createFormForPage(PageInterface $page, string $name, array $form): ?FormInterface;
- */
- }
|