Lines Matching defs:requestedWidth
29 protected ?int $requestedWidth = null;
64 $requestedWidth = $this->getRequestedWidth();
65 $url->addQueryParameterIfNotPresent(Dimension::WIDTH_KEY_SHORT, $requestedWidth);
107 $requestedWidth = $this->getRequestedWidth();
109 $requestedWidth = null;
116 if ($requestedWidth !== null || $requestedHeight !== null) {
124 return media_get_token($id, $requestedWidth, $requestedHeight);
136 $requestedWidth = $tagAttributes->getValueAndRemove(Dimension::WIDTH_KEY);
137 if ($requestedWidth === null) {
138 $requestedWidth = $tagAttributes->getValueAndRemove(Dimension::WIDTH_KEY_SHORT);
140 if ($requestedWidth !== null) {
142 $requestedWidthInt = DataType::toInteger(ConditionalLength::createFromString($requestedWidth)->toPixelNumber());
144 throw new ExceptionBadArgument("The width value ($requestedWidth) is not a valid integer", FetcherImage::CANONICAL, 0, $e);
420 if ($this->requestedWidth === null) {
423 if ($this->requestedWidth === 0) {
426 return $this->requestedWidth;
494 public function setRequestedWidth(int $requestedWidth): FetcherImage
496 $this->requestedWidth = $requestedWidth;
558 if ($this->requestedHeight !== null && $this->requestedWidth !== null) {