You are here

public function SvgIconBuilder::setPadding in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php \Drupal\Core\Layout\Icon\SvgIconBuilder::setPadding()

Sets the padding.

Parameters

int $padding: The padding between regions.

Return value

$this

Overrides IconBuilderInterface::setPadding

File

core/lib/Drupal/Core/Layout/Icon/SvgIconBuilder.php, line 277

Class

SvgIconBuilder
Builds SVG layout icons.

Namespace

Drupal\Core\Layout\Icon

Code

public function setPadding($padding) {
  $this->padding = $padding;
  return $this;
}