You are here

public function GridStackBase::buildIconFileUri in GridStack 8.2

Returns the file icon URI to be stored in public directory.

1 call to GridStackBase::buildIconFileUri()
GridStackBase::getIconFileUri in src/Entity/GridStackBase.php
Returns the file icon URI stored in public directory.

File

src/Entity/GridStackBase.php, line 157

Class

GridStackBase
Defines the base class for GridStack configuration entity.

Namespace

Drupal\gridstack\Entity

Code

public function buildIconFileUri($dir = 'gridstack', $extension = 'png') {
  return \file_build_uri($dir . '/' . $this
    ->id() . '.' . $extension);
}