public getAllOptions ( ) : array | ||
리턴 | array |
public function getAllOptions()
{
$this->loadOptions();
$event = new ImageSizesEvent($this->options);
$this->eventDispatcher->dispatch(ContaoCoreEvents::IMAGE_SIZES_ALL, $event);
return $event->getImageSizes();
}
/** * Tests getting all options without image sizes. */ public function testGetAllOptionsWithoutImageSizes() { $this->expectEvent(ContaoCoreEvents::IMAGE_SIZES_ALL); $this->expectImageSizes([]); $options = $this->imageSizes->getAllOptions(); $this->assertArraySubset($GLOBALS['TL_CROP'], $options); $this->assertArrayNotHasKey('image_sizes', $options); }