PHP Classes

File: engine/modules/contrib/foundation/source/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss

Recommend this page to a friend!
  Classes of Aldo Tripiciano   Quanta CMS   engine/modules/contrib/foundation/source/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss   Download  
File: engine/modules/contrib/foundation/source/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Quanta CMS
Manage content that works without a database
Author: By
Last change:
Date: 5 years ago
Size: 668 bytes
 

Contents

Class file image Download
/// /// Checks whether `$functions` exist in global scope. /// /// @access private /// /// @param {ArgList} $functions - list of functions to check for /// /// @return {Bool} Whether or not there are missing dependencies /// @function sl-missing-dependencies($functions...) { $missing-dependencies: (); @each $function in $functions { @if not function-exists($function) { $missing-dependencies: append($missing-dependencies, $function, comma); } } @if length($missing-dependencies) > 0 { @error 'Unmet dependencies! The following functions are required: #{$missing-dependencies}.'; } @return length($missing-dependencies) > 0; }