function ParagraphsPackFeatureWebTestCase::get_options_machine_names in Paragraphs pack 7
Get all options machine names.
Parameters
object $select_element: A select element.
Return value
array An array of options machine names.
1 call to ParagraphsPackFeatureWebTestCase::get_options_machine_names()
File
- tests/
paragraphs_pack.test_helper.inc, line 128 - Paragraphs pack content module's tests.
Class
- ParagraphsPackFeatureWebTestCase
- Class ParagraphsPackWebTestCase
Code
function get_options_machine_names($select_element) {
$options = $this
->getAllOptions($select_element);
$options_machine_names = array();
foreach ($options as $option) {
$options_machine_names[] = (string) $option
->attributes()->value;
}
return $options_machine_names;
}