]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/symfony/form/Symfony/Component/Form/FormExtensionInterface.php
a67055b797b1ced858aa9570354e9d217bb9f69d
4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Form
;
15 * Interface for extensions which provide types, type extensions and a guesser.
17 interface FormExtensionInterface
20 * Returns a type by name.
22 * @param string $name The name of the type
24 * @return FormTypeInterface The type
26 * @throws Exception\InvalidArgumentException if the given type is not supported by this extension
28 public function getType($name);
31 * Returns whether the given type is supported.
33 * @param string $name The name of the type
35 * @return Boolean Whether the type is supported by this extension
37 public function hasType($name);
40 * Returns the extensions for the given type.
42 * @param string $name The name of the type
44 * @return FormTypeExtensionInterface[] An array of extensions as FormTypeExtensionInterface instances
46 public function getTypeExtensions($name);
49 * Returns whether this extension provides type extensions for the given type.
51 * @param string $name The name of the type
53 * @return Boolean Whether the given type has extensions
55 public function hasTypeExtensions($name);
58 * Returns the type guesser provided by this extension.
60 * @return FormTypeGuesserInterface|null The type guesser
62 public function getTypeGuesser();